conv_hep_sec_numtumors: Convert number of secondary tumors to integer

conv_hep_sec_numtumorsR Documentation

Convert number of secondary tumors to integer

Description

Convert number of secondary tumors to integer

Usage

conv_hep_sec_numtumors(vec)

Arguments

vec

a character vector of values to convert

Details

NSQIP encodes anyone with more than 8 secondary tumors as "8 or more". This converts all "8 or more" to 8. If given NA, will return NA.

Value

an integer vector

Examples

nsqipr:::conv_hep_sec_numtumors(c("1","2","More than 8",NA))


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