conv_complication: Convert complication columns to logicals

View source: R/utils-conv.R

conv_complicationR Documentation

Convert complication columns to logicals

Description

Convert complication columns to logicals

Usage

conv_complication(vec)

Arguments

vec

a character vector to convert complication columns

Details

Matches the case-insensitive fixed string "no complication" and negates the result. Any string that does not match will return TRUE. NA will return NA.

Value

a logical vector

Examples


x <- data.frame(
x = rep("no complication", 10),
y = rep("NO COMPLICATION", 10),
z = rep("complication", 10),
xx = rep("", 10),
yy = rep(NA, 10)
)

lapply(x , nsqipr:::conv_complication)


dylanrussellmd/nsqipr documentation built on Oct. 13, 2023, 11:01 a.m.