apply_type_funs: apply type funs

apply_type_funsR Documentation

apply type funs

Description

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

Usage

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


tdhock/namedCapture documentation built on Jan. 27, 2024, 9:02 p.m.