extract
.This is a S3 generic.
extract_(data, col, into, regex = "([[:alnum:]]+)", remove = TRUE,
convert = FALSE, ...)
A data frame.
Name of column to split, as string.
Names of new variables to create as character vector.
a regular expression used to extract the desired values.
If TRUE
, remove input column from output data frame.
If TRUE
, will run type.convert
with
as.is = TRUE
on new columns. This is useful if the component
columns are integer, numeric or logical.
Other arguments passed on to regexec
to control
how the regular expression is processed.