Man pages for dylanrussellmd/nsqipr
Interact with NSQIP data via R

addmissingcolumnsAdd missing columns
bmiCalculate BMI
checkAnyDeadCheck if any trues exist row-wise in a logical matrix.
checkAnyTrueCheck if any trues exist row-wise in a logical matrix.
check_comaneurograftRemove coma, neuro deficit, and graft columns after 2010
check_if_inCheck if columns in data frame
checkTrueCheck if a boolean is TRUE and not NA
coalesceCoalesce two vector
coalesce_colsCoalesce two columns
collect_column_namesCollect all column names
colorderSet data table columns to a specified order
conv_Apply a given function to specified columns in a data table
conv_aaa_colsConvert targeted abdominal aortic aneurysm columns
conv_aaa_iculosConvert targeted AAA ICU length of stay to integer
conv_ageConvert age to integer
conv_aie_colsConvert targeted aortoiliac endo columns
conv_aio_colsConvert targeted aortoiliac open columns
conv_app_abscessParse entries that indicate an abscess
conv_app_colsConvert targeted appendectomy columns
conv_app_img_ctParse entries that indicate a CT was performed
conv_app_img_mriParse entries that indicate an MRI was performed
conv_app_img_ultraParse entries that indicate an ultrasound was performed
conv_app_intraabscessParse entries that indicate an post-operative intraabdominal...
conv_app_intraabscess_interventionParse a column for type of intra-abdominal abscess...
conv_app_perforationParse entries that indicate a perforation
conv_col_anastomoticParse entries that indicate the presence of an anastomotic...
conv_col_colsConvert targeted colectomy columns
conv_col_leak_treatmentParse a column for type of anastomotic leak intervention
conv_complicationConvert complication columns to logicals
conv_dateConverts a single year to a date
convert_col_to_integerConvert a column to integers
conv_factorConvert factor columns
conv_hep_bileleakageParse entries that indicate the presence of a bile leak
conv_hep_bileleakage_interventionParse a column for type of bile leak intervention
conv_hep_bileleakage_typeParse a column for type of bile leakage
conv_hep_colsConvert targeted hepatectomy columns
conv_hep_con_partresConvert concurrent partial resections to integer
conv_hep_hepbParse entries that indicate a Hepatitis B infection
conv_hep_hepcParse entries that indicate a Hepatitis C infection
conv_hep_liverfailParse entries that indicate the presence of liver failure
conv_hep_liverfail_typeParse a column for type of liver failure
conv_hep_otherviralParse entries that indicate a non-Hepatitis viral infection
conv_hep_sec_numtumorsConvert number of secondary tumors to integer
conv_hispanicAdd or update Hispanic ethnicity column
conv_inoutConvert inout to logical
conv_notnoConvert "no" columns to logicals
conv_numscaleExtract number scale from vector
conv_open_assistParse entries with open assist or hand assist
conv_pan_colsConvert targeted pancreatectomy columns
conv_pan_delgastricParse a column for type of delayed gastric emptying treatment
conv_pan_fistulaParse entries that indicate the presence of a fistula
conv_pan_fistula_interventionParse a column for type of fistula intervention
conv_pan_fistula_typeParse a column for type of fistula
conv_puf_colsConvert ACS NSQIP PUF columns
conv_raceConvert race to factor
conv_to_standardThe top level data cleaning function
conv_unplanned_conversionParse entries with unplanned conversion to open
conv_yesnoConvert yes/no columns to logicals
create_dirsCreates directories from a vector of desired directory names....
dindoClassifies a patient according to the Dindo-Clavien surgical...
extract_number_from_columnExtract number from value
factorpipeFactor pipe
get_file_or_dirCheck if a path is a directory or a file
get_pufyearAdd a PUF year column
grapes-qsin-grapesQuick Search
insulinParse a column for insulin usage
isDeadCheck if a patient has died within 30 days of the index...
isFullDTCheck if a data table is full
make_amylase_longConvert amylase columns from wide to long format
make_anesthes_other_longConvert anesthes_other column from wide to long format
make_cols_longConvert columns to a wide format
make_commas_longConvert comma-separated columns to a wide format
make_cpt_longConvert CPT, Procedure Name, and WRVU from wide to long...
make_hep_con_ablation_longConvert hep_con_ablation_140101 column from wide to long...
make_hep_invasive_type_longConvert hep_invasive_type column from wide to long format
make_hep_neotherapy_longConvert hep_neotherapy_140101 column from wide to long format
make_long_colsCreate multiple columns from comma-separated column
make_pan_percdrainage_colsCreate percutaneous drainage columns for long conversion
make_pan_percdrainage_longConvert pan_percdrainage column from wide to long format
make_readm_longConvert readmission columns from wide to long format
make_reop_longConvert reoperation columns from wide to long format
move_filesMoves files from a parent directory to newly created...
nsqipClean NSQIP data
nsqip_dirRuns the 'nsqip' function in a single directory.
nsqiprnsqipr: A cleaner NSQIP.
parse_filenameParses a file name and returns a lower-case string of the...
parse_filesParses a directory of files and creates the requisite...
pbCreate a progress bar
remove_undesiredRemove undesired columns from a data table
setlowernamesConvert column names to lower case
tickIncrement a progress bar
type_prsepisParse a column for type of sepsis
when_dyspneaParse a column for type of dyspnea
dylanrussellmd/nsqipr documentation built on Oct. 13, 2023, 11:01 a.m.