A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/tidyverse/dplyr/issues/4460 below:

False positive implicit NA warning with factors and 0-row slices · Issue #4460 · tidyverse/dplyr · GitHub

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)


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4