create_diag: Create a new variable based on pattern.

Description Usage Arguments Value

View source: R/create_diag.R

Description

Create a new variable based on pattern in the argument expr

Usage

1
create_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


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