split_column {baizer} | R 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)
[Package baizer version 0.8.0 Index]