row_expand_pattern | R Documentation |
Expand row based on pattern
row_expand_pattern(dt, col_name, split_by_pattern, new_name)
dt |
input data table |
col_name |
column to be expanded |
split_by_pattern |
split based on pattern |
new_name |
new generated column name |
expanded data table
data("starwars_simple") row_expand_pattern(starwars_simple, "films", ", ", "film")[]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.