EDIorg / ecocomDP

A dataset design pattern and R package for ecological community data.
https://ediorg.github.io/ecocomDP/
Other
32 stars 13 forks source link

calc_number_of_years_sampled function returns one too few years #121

Open kzollove opened 2 years ago

kzollove commented 2 years ago

This function returns number of years sampled - 1

I think this -1 was implemented to handle a situation Where sampling occurred Jan 1, 2000 through Jan 1, 2001 (logically, one year of sampling)

But in any other instance it makes sense to not have the -1 year

Screen Shot 2021-09-23 at 2 47 38 PM