Package: scicalc 0.1.2

Matthew Smith

scicalc: Scientific Calculations for Quantitative Clinical Pharmacology and Pharmacometrics Analysis

Utility functions helpful for reproducible scientific calculations.

Authors:Matthew Smith [aut, cre], Jenna Johnson [aut], Devin Pastoor [aut], Wesley Cummings [ctb], Emily Schapiro [ctb], Ryan Crass [ctb], Jonah Lyon [ctb], Elizabeth LeBeau [ctb]

scicalc_0.1.2.tar.gz
scicalc_0.1.2.zip(r-4.5)scicalc_0.1.2.zip(r-4.4)scicalc_0.1.2.zip(r-4.3)
scicalc_0.1.2.tgz(r-4.5-any)scicalc_0.1.2.tgz(r-4.4-any)scicalc_0.1.2.tgz(r-4.3-any)
scicalc_0.1.2.tar.gz(r-4.5-noble)scicalc_0.1.2.tar.gz(r-4.4-noble)
scicalc_0.1.2.tgz(r-4.4-emscripten)scicalc_0.1.2.tgz(r-4.3-emscripten)
scicalc.pdf |scicalc.html
scicalc/json (API)

# Install 'scicalc' in R:
install.packages('scicalc', repos = c('https://a2-ai.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/a2-ai/scicalc/issues

Pkgdown site:https://a2-ai.github.io

On CRAN:

4.04 score 1 stars 4 scripts 43 exports 41 dependencies

Last updated 9 days agofrom:bc32814c8b. Checks:8 OK. Indexed: yes.

TargetResultLatest binary
Doc / VignettesOKFeb 10 2025
R-4.5-winOKFeb 10 2025
R-4.5-macOKFeb 10 2025
R-4.5-linuxOKFeb 10 2025
R-4.4-winOKFeb 10 2025
R-4.4-macOKFeb 10 2025
R-4.3-winOKFeb 10 2025
R-4.3-macOKFeb 10 2025

Exports:%>%bbmibhfcbrfcbsacategorizecheck_for_unique_unitsckdepi_2009_egfrckdepi_2021_egfrckdepi_2021_egfr_cystatincrclcreate_dircvdubois_bsaegfrethnicngeom_cvgeom_meangeom_sdget_unique_units_dfis_asianis_blackis_femaleis_hispanic_or_latinois_not_hispanic_or_latinois_otheris_whitemdrd_egfrmosteller_bsaracenread_csv_with_hashread_excel_with_hashread_file_with_hashread_hashed_fileread_parquet_with_hashread_pzfx_with_hashread_sas_with_hashread_xpt_with_hashschwartz_egfrsexfwrite_csv_with_hashwrite_file_with_hashwrite_parquet_with_hash

Dependencies:arrowassertthatbackportsbitbit64cellrangercheckmateclicliprcpp11crayondigestdplyrfansiforcatsfsgenericsgluehavenhmslifecyclemagrittrpillarpkgconfigprettyunitsprogresspurrrR6readrreadxlrematchrlangstringistringrtibbletidyselecttzdbutf8vctrsvroomwithr

scicalc

Rendered fromscicalc.Rmdusingknitr::rmarkdownon Feb 10 2025.

Last update: 2025-01-20
Started: 2024-08-22

Readme and manuals

Help Manual

Help pageTopics
Calculates Baseline Body Mass Index based on Weight and Heightbbmi
Calculates hepatic function criteriabhfc
Calculates renal impairment categories based on CrCLbrfc
Calculates Body Surface Area based on Weight and Height using the method specified. Default is Dubois.bsa
Converts continuous variable into factor categories.categorize
Gives a TRUE/FALSE for if the Parameters have only 1 associated unitcheck_for_unique_units
Calculates Estimated Glomerular Filtration Rate based on Sex, Race, Age, and Creatinine levels based on the CKDEPI 2009 equationckdepi_2009_egfr
Calculates eGFR using the CKDEPI 2021 creatinine equationckdepi_2021_egfr
Calculates eGFR with CKDEPI 2021 cystatin equationckdepi_2021_egfr_cystatin
Calculates Creatinine clearance with Cockcroft-Gault equationcrcl
Creates the directory if it doesn't existcreate_dir
Computes the coefficient of variation of input vector.cv
Calculates Body Surface Area based on Weight and Height using Dubois Dubois equationdubois_bsa
Calculates eGFR based on the method specifiedegfr
Takes character input and returns standard yspec numeric value for Ethnicethnicn
Computes the geometric CV of a vector xgeom_cv
Computes the geometric mean of a vector.geom_mean
Computes the geometric standard deviation of a vector x.geom_sd
Creates a dataframe with distinct parameters and units combinationsget_unique_units_df
Takes character input and returns TRUE/FALSE if asian/otheris_asian
Takes character input and returns TRUE/FALSE if black/other also checks for "African American" and "Black or African American"is_black
Takes character input and returns TRUE/FALSE if female/maleis_female
Takes character input and returns TRUE/FALSE if "Hispanic or Latino" or otheris_hispanic_or_latino
Takes character input and returns TRUE/FALSE if "Not Hispanic or Latino" or otheris_not_hispanic_or_latino
Takes character input and returns TRUE/FALSE if other/explicit raceis_other
Takes character input and returns TRUE/FALSE if white/otheris_white
Modification of Diet in Renal Disease eGFR calculationmdrd_egfr
Calculates Body Surface Area based on Weight and Height using Mosteller equationmosteller_bsa
Takes character input and returns standard yspec numeric value for Raceracen
Reads data from csv file and prints hash of contents.read_csv_with_hash
Reads data from xlsx/xls file and prints hash of contents.read_excel_with_hash
Reads the data from a file (csv or parquet) and prints the hashread_file_with_hash
Reads a file if the supplied hash matches the file's hashread_hashed_file
Reads data from parquet file and prints hash of contents.read_parquet_with_hash
Reads in table from a prism pzfx file.read_pzfx_with_hash
Reads data from sas file and prints hash of contents.read_sas_with_hash
Reads data from xpt file and prints hash of contents.read_xpt_with_hash
Calculates eGFR based on Schwartz' equationschwartz_egfr
Takes character input and returns standard yspec numeric value for Sex.sexf
Writes data to csv_path with na_value replacing NA values.write_csv_with_hash
Writes data to path, if directory doesn't exist it is created before file is writtenwrite_file_with_hash
Writes data to parquet_path and prints hashwrite_parquet_with_hash