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
If you take an epi_df, group it by some keys, summarise it in some way, and then ungroup it, the result is no longer an epi_df (it's a tibble).
epi_df
tibble
Example
tib <- tibble( x = 1:5, y = 1:5, time_value = seq(as.Date("2020-01-01"), by = 1, length.out = 5), geo_value = "ca") %>% epiprocess::as_epi_df() is_epi_df(tib) # TRUE tib2 <- tib %>% group_by(time_value, geo_value, x) %>% mutate(ysum = sum(y)) %>% ungroup() is_epi_df(tib2) # TRUE tib3 <- tib %>% group_by(time_value, geo_value, x) %>% summarise(ysum = sum(y)) %>% ungroup() is_epi_df(tib3) # FALSE
The text was updated successfully, but these errors were encountered:
summarise
?dplyr_extending
brookslogan
No branches or pull requests
If you take an
epi_df
, group it by some keys, summarise it in some way, and then ungroup it, the result is no longer anepi_df
(it's atibble
).Example
The text was updated successfully, but these errors were encountered: