tidyr_table_manipulation: 'tidyr' table manipulation methods for zoomed dm objects

Description Usage Arguments Examples

Description

Use these methods without the '.zoomed_dm' suffix (see examples).

Usage

1
2
3
4
5
## S3 method for class 'zoomed_dm'
unite(data, col, ..., sep = "_", remove = TRUE, na.rm = FALSE)

## S3 method for class 'zoomed_dm'
separate(data, col, into, sep = "[^[:alnum:]]+", remove = TRUE, ...)

Arguments

data

object of class zoomed_dm

col

For unite.zoomed_dm: see tidyr::unite

For separate.zoomed_dm: see tidyr::separate

...

For unite.zoomed_dm: see tidyr::unite

For separate.zoomed_dm: see tidyr::separate

sep

For unite.zoomed_dm: see tidyr::unite

For separate.zoomed_dm: see tidyr::separate

remove

For unite.zoomed_dm: see tidyr::unite

For separate.zoomed_dm: see tidyr::separate

na.rm

see tidyr::unite

into

see tidyr::separate

Examples

1
2
3
4
5
6
7
zoom_united <- dm_nycflights13() %>%
  dm_zoom_to(flights) %>%
  select(year, month, day) %>%
  unite("month_day", month, day)
zoom_united
zoom_united %>%
  separate(month_day, c("month", "day"))

krlmlr/dm documentation built on Sept. 15, 2020, 11:42 a.m.