apply_type_funs: apply type funs

Description Usage Arguments Value Author(s)

Description

Convert columns of match.mat using corresponding functions from type.list.

Usage

1
2
apply_type_funs(match.mat, 
    type.list)

Arguments

match.mat

character matrix (matches X groups).

type.list

named list of functions to apply to captured groups.

Value

If type.list is a list of functions, then return a data.frame whose columns are defined by calling the functions in type.list on the corresponding column of match.mat. Otherwise just return a character matrix. If match.mat does not already have rownames, and it has a column named "name", then that column will be used for the rownames, and that column will not be returned.

Author(s)

Toby Dylan Hocking


namedCapture documentation built on April 2, 2020, 1:07 a.m.