conv_aaa_iculos: Convert targeted AAA ICU length of stay to integer

View source: R/conv_aaa.R

conv_aaa_iculosR Documentation

Convert targeted AAA ICU length of stay to integer

Description

Convert targeted AAA ICU length of stay to integer

Usage

conv_aaa_iculos(vec)

Arguments

vec

a character vector of values to convert

Details

NSQIP encodes anyone staying 30 days or more as "30 or more". This converts all "30 or more" to 30. If given NA, will return NA.

Value

an integer vector

Examples

nsqipr:::conv_aaa_iculos(c("14","2","30 or more",NA))


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