CPTtoVar: ACS-NSQIP CPT codes to a variable

Description Usage Arguments Value

Description

ACS-NSQIP has a lot of CPT codes for each observation. This function examines each CPT code and returns the code name if it is present, and "No" if the code is not present.

Usage

1
CPTtoVar(df, code)

Arguments

df

This is the name of the NSQIP dataframe.

code

This is the CPT code of interest

Value

Returns the CPT code if present in any NSQIP variable for that observation, "No" otherwise


mustafaascha/mustafamisc documentation built on May 23, 2019, 9:56 a.m.