apply_type_funs | R Documentation |
Convert columns of match.mat
using corresponding functions from
fun.list
, then handle any duplicate capture group
names.
apply_type_funs(match.mat,
fun.list)
match.mat |
Character matrix (matches X groups). |
fun.list |
Named list of functions to apply to captured groups. If there are
any duplicate names, they must be in |
data.table with columns defined by calling the functions in
fun.list
on the corresponding column of match.mat
. Even if
fun.list
has duplicated names, the output data.table will have
unique column names (identically named capture groups in
alternatives
will be combined into a single output column).
Toby Hocking <toby.hocking@r-project.org> [aut, cre]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.