utils_split_and_name: Split string into tibble

Description Usage Arguments Value Examples

Description

Split provided string according to specified pattern. Organise output as a tibble.

Usage

1

Arguments

string

Character string to be split.

pattern

Pattern to split on as character string (can be a regex).

num_col

Number of parts to split the string into as integer.

colnames

Column names for the output tibble.

Value

A tibble

Examples

1
2
3
4
## Not run: 
  utils_split_and_name("glasgow-entrepreneurs", "-", 2, c("location", "occupation"))

## End(Not run)

podcleaner documentation built on Jan. 12, 2022, 1:06 a.m.