Creates a column that indicates if a patient is preoperatively functionally independent or not.

add_preopindependent(df)

Arguments

df

a data frame containing a fnstatus2 column.

Value

a data frame

Examples

df <- data.frame(fnstatus2 = c(1, 2, 3)) df <- df %>% add_preopindependent()