powered by
Split one column to multiple columns based on patterns
str_split_col(dt, by_col, by_pattern, match_to_names = NULL)
data table with new columns
input data table
by this column
split by this patter
created new columns names
data("dt_dates") str_split_col(dt_dates, by_col = "Full_name", by_pattern = ", ", match_to_names = c("First Name", "Last Name"))
Run the code above in your browser using DataLab