nsqip_clean_data: Cleaning the raw National Surgical Quality Improvement...

View source: R/nsqip_clean_data.R

nsqip_clean_dataR Documentation

Cleaning the raw National Surgical Quality Improvement Program (NSQIP) Dataset

Description

This function is designed to perform routine data cleaning routines when using the raw NSQIP data. Cleaning functions include missing data recoding, variable categorization/dichotomization, converting string entries to usable formats, and changing variable classes. This function outputs a cleaned dataframe and variable summary.

Usage

nsqip_clean_data(dataset = dat)

Arguments

dataset

the filtered and merged NSQIP data frame outputted by the "nsqip_subset_pufs" function

Details

NOTE: This function contains the sub-function update_label() to change variable labels.


UKBiostatCIRCL/UK-Biostat-CIRCL documentation built on June 30, 2022, 4:42 a.m.