Skip to content

as_tibble() drops grouped_df class #535

Description

@krlmlr

From rnabioco/valr#338 (comment):

6d53680

library(tidyverse)

tibble(a = 1:3) %>%
  group_by(a) %>%
  as_tibble()
#> # A tibble: 3 x 1
#>       a
#>   <int>
#> 1     1
#> 2     2
#> 3     3

Created on 2018-11-10 by the reprex package (v0.2.1.9000)

v1.4.2

library(tidyverse)

tibble(a = 1:3) %>%
  group_by(a) %>%
  as_tibble()
#> # A tibble: 3 x 1
#> # Groups:   a [3]
#>       a
#>   <int>
#> 1     1
#> 2     2
#> 3     3

Created on 2018-11-10 by the reprex package (v0.2.1)

Options

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions