VincyaneBadouard / TreeData_broken

Harmonization and correction forest data tool.
https://vincyanebadouard.github.io/TreeData/
0 stars 1 forks source link

Unique measurement per census Id vs per Year #69

Closed ValentineHerr closed 1 year ago

ValentineHerr commented 1 year ago

the function UniqueMeasurement

removes repeated measurements of an individual in the same year, keeping only the measurements (rows) with the highest POM (if KeepMeas = "MaxHOM"), and/or the most recent measurement (same year but more recent date) (if KeepMeas = "MaxDate")

I would like to change "Year" to "IdCensus" to accomodate cases where there may be two censuses in the same year (before and after growing season) and to detect repeated measures that may have occurred in the same census but at different years (when census span more than one year).

When a user does not have IdCensus in their data, IdCensus is automatically generated using Year, so in those cease, the outcome of UniqueMeasurement would be the same.

@cpiponiot, do you see any potential issues with that?