separate_n: A wrapper version of tidyr::separate() that automatically...

Description Usage Arguments Examples

View source: R/separate_n.R

Description

A wrapper version of tidyr::separate() that automatically creates and names correct number of new variables

Usage

1
separate_n(data, x, sep, fill = "right", extra = "warn")

Arguments

data

is the data

x

is a variable being separated

sep

is the separator character

fill

default argument passed to tidyr::separate()

extra

default argument passed to tidyr::separate()

prefix

prefix used in names of variables created by separation

Examples

1
mtcars %>% rownames_to_column("model") %>% separate_n(x = model, sep = " ")

joepowers16/breadcrumbs documentation built on Dec. 25, 2019, 4:13 p.m.