type_prsepis: Parse a column for type of sepsis

type_prsepisR Documentation

Parse a column for type of sepsis

Description

Parse a column for type of sepsis

Usage

type_prsepis(vec)

Arguments

vec

a character vector of values to convert

Details

NSQIP encodes the sepsis column as either "sirs", "sepsis", "septic shock", or "none. This function factors the vector for the levels "SIRS", "Sepsis", and "Septic shock".

NOTE: prsepis is spelled incorrectly (as it is originally spelled in the NSQIP database). It is not spelled prsepsis.

Value

a factor vector

Examples

 nsqipr:::type_prsepis(c("sirs","sepsis", "septic shock", NA))


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