This function similar to regexp2df, but accepts both strings and functions as values of argument pattern.

parse_string(x, pattern, ignore.case = FALSE, ...)

Arguments

x

A string to be parsed

pattern

Either a string with regular expression or a function.

ignore.case

A logical parameter to be passed to regexp2df.

...

further parameters to be passed to regexp2df.

Value

A data frame with parsed information.