split_column: split a column and return a longer tibble

View source: R/dataframe.R

split_columnR Documentation

split a column and return a longer tibble

Description

split a column and return a longer tibble

Usage

split_column(df, name_col, value_col, sep = ",")

Arguments

df

tibble

name_col

repeat this as name column

value_col

expand by this value column

sep

separator in the string

Value

expanded tibble

Examples

fancy_count(mini_diamond, cut, ext = clarity) %>%
  split_column(name_col = cut, value_col = clarity)

baizer documentation built on Oct. 19, 2023, 9:07 a.m.