We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
drop_na()
tbl_df
When I add a subclass to a tbl_df, drop_na() removes that class:
iris |> dplyr::as_tibble() |> structure(class = c("pop_data", "tbl_df", "tbl", "data.frame")) |> tidyr::drop_na() |> class() #> [1] "tbl_df" "tbl" "data.frame"
In contrast, it doesn't remove subclasses from data.frames:
data.frame
iris |> structure(class = c("pop_data", "data.frame")) |> tidyr::drop_na() |> class() #> [1] "pop_data" "data.frame"
Created on 2024-07-17 with reprex v2.1.0
The text was updated successfully, but these errors were encountered:
This is a specific case of #943
Sorry, something went wrong.
No branches or pull requests
When I add a subclass to a
tbl_df
,drop_na()
removes that class:In contrast, it doesn't remove subclasses from
data.frame
s:Created on 2024-07-17 with reprex v2.1.0
The text was updated successfully, but these errors were encountered: