Reading/Writing File Functions |
|
---|---|
File Reading Functions |
|
Reads a file if the supplied hash matches the file's hash |
|
Reads data from csv file and prints hash of contents. |
|
Reads the data from a file (csv or parquet) and prints the hash |
|
Reads data from parquet file and prints hash of contents. |
|
Reads in table from a prism pzfx file. |
|
Reads data from sas file and prints hash of contents. |
|
Reads data from xpt file and prints hash of contents. |
|
Reads data from xlsx/xls file and prints hash of contents. |
|
File Writing Functions |
|
Writes data to csv_path with na_value replacing NA values. |
|
Writes data to path, if directory doesn't exist it is created before file is written |
|
Writes data to parquet_path and prints hash |
|
Data Manipulation |
|
Demographic Manipulations |
|
Takes character input and returns TRUE/FALSE if white/other |
|
Takes character input and returns TRUE/FALSE if black/other also checks for "African American" and "Black or African American" |
|
Takes character input and returns TRUE/FALSE if asian/other |
|
Takes character input and returns TRUE/FALSE if other/explicit race |
|
Takes character input and returns standard yspec numeric value for Race |
|
Takes character input and returns TRUE/FALSE if "Hispanic or Latino" or other |
|
Takes character input and returns TRUE/FALSE if "Not Hispanic or Latino" or other |
|
Takes character input and returns standard yspec numeric value for Ethnic |
|
Takes character input and returns standard yspec numeric value for Sex. |
|
Takes character input and returns TRUE/FALSE if female/male |
|
Vitals Functions |
|
Calculates Baseline Body Mass Index based on Weight and Height |
|
Calculates Body Surface Area based on Weight and Height using the method specified. Default is Dubois. |
|
Calculates Body Surface Area based on Weight and Height using Dubois Dubois equation |
|
Calculates Body Surface Area based on Weight and Height using Mosteller equation |
|
Calculates Creatinine clearance with Cockcroft-Gault equation |
|
Calculates renal impairment categories based on CrCL |
|
Calculates hepatic function criteria |
|
Calculates eGFR based on the method specified |
|
Calculates Estimated Glomerular Filtration Rate based on Sex, Race, Age, and Creatinine levels based on the CKDEPI 2009 equation |
|
Calculates eGFR using the CKDEPI 2021 creatinine equation |
|
Calculates eGFR with CKDEPI 2021 cystatin equation |
|
Modification of Diet in Renal Disease eGFR calculation |
|
Calculates eGFR based on Schwartz' equation |
|
Statistical Functions |
|
Computes the coefficient of variation of input vector. |
|
Computes the geometric CV of a vector x |
|
Computes the geometric mean of a vector. |
|
Computes the geometric standard deviation of a vector x. |
|
Converts continuous variable into factor categories. |
|
Unit Checks |
|
Gives a TRUE/FALSE for if the Parameters have only 1 associated unit |
|
Creates a dataframe with distinct parameters and units combinations |
|
Creates the directory if it doesn't exist |