when_dyspnea: Parse a column for type of dyspnea

when_dyspneaR Documentation

Parse a column for type of dyspnea

Description

Parse a column for type of dyspnea

Usage

when_dyspnea(vec)

Arguments

vec

a character vector of values to convert

Details

NSQIP encodes the dyspnea column as either "no", "at rest", or "moderate exertion". This function factors the vector for the levels "At rest" and "Moderate exertion".

Value

a factor vector

Examples

 nsqipr:::when_dyspnea(c("at rest","moderate exertion", NA))


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