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

column class error #70

Open
ctlamb opened this issue Dec 31, 2024 · 1 comment
Open

column class error #70

ctlamb opened this issue Dec 31, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@ctlamb
Copy link
Contributor

ctlamb commented Dec 31, 2024

I think the column classes need to be explicitly set within the wildrtrax::wt_download_report() function otherwise bind_rows can't combine multiple project

This is likely an issue related to me having cams other than Reconyx in this project early on and only reconyx later. hard coding the column class will make this function a bit more robust to variation in cam makes and models.

> proj.ids <- c(738, 757, 1296, 2045)
> image <- map_df(
+   .x = proj.ids,
+   .f = ~ wildrtrax::wt_download_report(
+     project_id = .x,
+     sensor_id = "CAM",
+     report = "image_report",
+     weather_cols = FALSE
+   )
+ )
Error in `dplyr::bind_rows()`:                                                                                                                                             
! Can't combine `..1$image_exif_temperature` <double> and `..4$image_exif_temperature` <character>.
@alexmacphail
Copy link
Member

@ctlamb Should have a patch for this now. Switched .wt_col_types from a getter function to a list

@alexmacphail alexmacphail added the bug Something isn't working label Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants