inst/test/code/mutate-6.R

library(dplyr)

mt <- mtcars %>%
  as_tibble() %>%
  select(mpg, cyl, hp) %>%
  group_by(cyl) %>%
  slice(1:2) %>%
  ungroup()

mt %>%
  mutate(cyl = "A")
seankross/mario documentation built on Dec. 22, 2021, 11:15 p.m.