BiologicalRecordsCentre / sparta

Species Presence/Absence R Trends Analyses
http://biologicalrecordscentre.github.io/sparta/index.html
MIT License
21 stars 24 forks source link

More flexibility required when specifying time_period #49

Closed drnickisaac closed 6 years ago

drnickisaac commented 6 years ago

The model assumes that all users want to use Year as the closure period. Further, visits are necessarily defined by Date.

Some datasets require coarser temporal precision. For Khushboo, we want to use Decade as the Closure period and Year as the definition of a Visit. We had to invent a clumsy workaround to convert her data into a suitable format.

One way around this would be to separate time_period into two components. Ideally, the second (visit) component would be flexible enough to accept both Dates and other types of information.

drnickisaac commented 6 years ago

I've now done this in version 0.1.41 time_period is replaced by survey, and there's an optional variable closure_period.