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

Calls to as.data.frame() seem to be returning confusing column classes. #42

Open
SimonGoring opened this issue Oct 24, 2023 · 1 comment

Comments

@SimonGoring
Copy link
Contributor

The as.data.frame() call is casting certain columns to non-intuitive column types. This causes problems with using functions like dplyr::inner_join() on tables.

reprex

library(neotoma2)
> ds <- get_datasets(1:10)
> df <- as.data.frame(ds)
> class(df$siteid)
[1] "character"

Expected

The ID columns should be integers. Other columns should be properly typed/classed.

@SimonGoring
Copy link
Contributor Author

Note that this actually conflicts with the use of UUIDs in the set_*() functions, which add unique string/character identifiers to records to maintain some form of unique value for object IDs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant