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

Export add_coordinates() #350

Closed
damianooldoni opened this issue Dec 24, 2024 · 2 comments
Closed

Export add_coordinates() #350

damianooldoni opened this issue Dec 24, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@damianooldoni
Copy link
Member

Function add_coordinates() to add deployments coordinates to observations, could be helpful for users, as suggested by @MartijnUH. At the moment (camtraptor 0.27) it's not exported, just a help function:

camtraptor/R/zzz.R

Lines 1021 to 1034 in 0559ca0

add_coordinates <- function(package) {
deployments <- package$data$deployments
observations <- package$data$observations
# add coordinates to observations
observations <- observations %>%
dplyr::left_join(deployments %>%
dplyr::select("deploymentID", "longitude", "latitude"),
by = "deploymentID")
package$data$observations <- observations
return(package)
}
.

To be exported as accessor function in camtraptor version 1.0.

@damianooldoni damianooldoni added the enhancement New feature or request label Dec 24, 2024
@damianooldoni damianooldoni added this to the v1.0 milestone Dec 24, 2024
@damianooldoni damianooldoni self-assigned this Dec 24, 2024
@damianooldoni
Copy link
Member Author

Add unit-tests too.

damianooldoni added a commit that referenced this issue Dec 24, 2024
@damianooldoni
Copy link
Member Author

Implemented in version 1.0.

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