Learn R Programming

coefplot (version 1.2.9)

doRegex: doRegex

Description

Helper function for matching coefficients

Usage

doRegex(x, matchAgainst, pattern = "(^| )%s($|,|=)")

Value

A list of indices of matchAgainst that is matched

Arguments

x

Root pattern to search for

matchAgainst

Text to search through

pattern

Regex pattern to build x into

Author

Jared P. Lander

Details

Only used by getCoefsFromPredictorsRevo for finding matches between predictors and coefficients