powered by
split a column and return a longer tibble
split_column(df, name_col, value_col, sep = ",")
expanded tibble
tibble
repeat this as name column
expand by this value column
separator in the string
fancy_count(mini_diamond, cut, ext = clarity) %>% split_column(name_col = cut, value_col = clarity)
Run the code above in your browser using DataLab