Closed
Description
These shouldn't be showing up right? It also occurs with vec_slice(ig, 0)
. We will need to create these 0 row slices for ptypes.
library(dplyr, warn.conflicts = FALSE)
ig <- group_by(iris, Species)
ig[0,]
#> Warning: Factor `Species` contains implicit NA, consider using
#> `forcats::fct_explicit_na`
#> Warning: Factor `Species` contains implicit NA, consider using
#> `forcats::fct_explicit_na`
#> # A tibble: 0 x 5
#> # Groups: Species [1]
#> # … with 5 variables: Sepal.Length <dbl>, Sepal.Width <dbl>,
#> # Petal.Length <dbl>, Petal.Width <dbl>, Species <fct>
Created on 2019-07-02 by the reprex package (v0.2.0.9000)
Activity
`group_by()` does not create an arbitrary NA group when grouping by f…
group_by()
does not create an arbitrary NA group #4497`group_by()` does not create an arbitrary NA group when grouping by f…
lock commentedon Jan 13, 2020
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/