powered by
Split provided string according to specified pattern. Organise output as a tibble.
tibble
utils_split_and_name(string, pattern, num_col, colnames)
Character string to be split.
Pattern to split on as character string (can be a regex).
Number of parts to split the string into as integer.
Column names for the output tibble.
A tibble
# NOT RUN { utils_split_and_name("glasgow-entrepreneurs", "-", 2, c("location", "occupation")) # }
Run the code above in your browser using DataLab