A RetroSearch Logo

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

Search Query:

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

count()/add_count() should preserve input classes · Issue #4086 · tidyverse/dplyr · GitHub

(Originally reported at #4051 (comment).)

``` r library(dplyr, warn.conflicts = FALSE)

x <- as_tibble(iris)
g <- group_by(x, Species)
class(g) <- c("myclass", class(g))

x %>%
add_tally() %>%
class()
#> [1] "tbl_df" "tbl" "data.frame"

x %>%
add_count() %>%
class()
#> [1] "tbl_df" "tbl" "data.frame"


<sup>Created on 2019-01-07 by the [reprex package](https://reprex.tidyverse.org) (v0.2.1)</sup>
</details>

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