inbo / camtraptor

Camtraptor is an R package to read, explore and visualize Camera Trap Data Packages (Camtrap DP)
https://inbo.github.io/camtraptor/
MIT License
10 stars 2 forks source link

Create `active_time()` #184

Open jimcasaer opened 1 year ago

jimcasaer commented 1 year ago

Create new indicator based on number with at least one observation of a species within a deployment

damianooldoni commented 1 year ago

Nice feature. Yes, it's possible to visualise it of course.

We can use number of days, but we could use hours, weeks or months as well. So, days should be the default value of an argument.

Now, the most difficult stuff: naming. As this function measures the proportion of active days/hrs/weeks/months, I think to a name like get_active_time(). @jimcasaer, @peterdesmet ?

peterdesmet commented 1 year ago

Suggested in camtraptor July 2023 coding sprint

active_time(
  package = NULL,
  group_by = "deploymentID" # new param, not sure if other groups make sense?
)

The returned information would be:

deploymentID
active_time