Answers for "r code mutate"

R
2

r how to mutate

mutate(.data, ...)

# S3 method for data.frame
mutate(
  .data,
  ...,
  .keep = c("all", "used", "unused", "none"),
  .before = NULL,
  .after = NULL
)
Posted by: Guest on June-08-2020
0

r code mutate

starwars %>%
  select(name, mass, species) %>%
  mutate(mass_norm = mass / mean(mass, na.rm = TRUE))
Posted by: Guest on November-15-2020
0

r code mutate

mutate(.data, ...)

# S3 method for data.frame
mutate(
  .data,
  ...,
  .keep = c("all", "used", "unused", "none"),
  .before = NULL,
  .after = NULL
)

transmute(.data, ...)
Posted by: Guest on November-15-2020

Browse Popular Code Answers by Language