add_new_diag: Create a new variable based on pattern in the argument expr

Description Usage Arguments Value Examples

View source: R/add_new_diag.R

Description

Create a new variable based on pattern in the argument expr

Usage

1
add_new_diag(data, expr, colvec, ignore.case = T, perl = T)

Arguments

ignore.case

logical

perl

logical

data:

input data

expr:

regular expression describing the pattern of interest

colvec:

indices of variables of interest

Value

new variable matching the pattern described in the regular expression

Examples

1
to be added

injuryepi/injuryepi documentation built on Nov. 13, 2019, 12:13 p.m.