In attempting to find a good work-around for dplyr issue 3069 I ran into this. If we form a data.frame that happens to have no columns (by dropping a column), then dplyr::tally does not return a count.
suppressPackageStartupMessages(library("dplyr"))
packageVersion("dplyr")
#> [1] '0.7.2.9000'data.frame(n= as.raw(1:3)) %>%
select(-n) %>% tally#> data frame with 0 columns and 3 rows
The text was updated successfully, but these errors were encountered:
This old issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with reprex) and link to this issue. https://reprex.tidyverse.org/
lockbot
locked and limited conversation to collaborators
Aug 2, 2018
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
In attempting to find a good work-around for
dplyr
issue 3069 I ran into this. If we form adata.frame
that happens to have no columns (by dropping a column), thendplyr::tally
does not return a count.The text was updated successfully, but these errors were encountered: