Learn R Programming

baizer (version 0.8.0)

split_column: 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 = ",")

Value

expanded tibble

Arguments

df

tibble

name_col

repeat this as name column

value_col

expand by this value column

sep

separator in the string

Examples

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

Run the code above in your browser using DataLab