Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add assign_events() function #83

Open
2 tasks
peterdesmet opened this issue Jun 14, 2024 · 0 comments
Open
2 tasks

Add assign_events() function #83

peterdesmet opened this issue Jun 14, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@peterdesmet
Copy link
Member

As part of read_camtrapdp(), eventIDs are assigned to the media:

# Add eventID to media
media(x) <-
dplyr::left_join(
media(x),
events(x),
by = dplyr::join_by(
"deploymentID",
"timestamp" >= "eventStart",
"timestamp" <= "eventEnd"
)
) %>%
dplyr::select(-"eventStart", -"eventEnd")

Users might want to do this again after they have cleaned/altered the observations e.g. with an assign_events() or assign_eventID() function:

  • Clear current eventID in media
  • Assign new ones based on the code above
@peterdesmet peterdesmet added the enhancement New feature or request label Jun 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant