hipecR_hex

hipecR

Lifecycle: experimental CRAN status

The goal of hipecR is to offer a collection of useful functions for analyzing patient data, including some essential functions for calculating the Peritoneal Surface Area (PSA) individually for each patient. After determining the global PSA, we can assess the quantitative PSA before and after cytoreduction (surgery). The underlying idea is to provide a reproducible and comparable definition of the resected PSA across different institutions. The next step involves calculating the dosage of chemotherapy during Hyperthermic Intraperitoneal Chemotherapy (HIPEC), adapted to the remaining PSA.

Installation

You can install the development version of hipecR like so:

library(devtools) # Make sure that the devtools library is loaded
install_github("tarjae/hipecR")

Example

This is a basic example which shows you how to solve a common problem:

library(hipecR)
## basic example code

Function Reference (R/)

Below is a concise overview of all exported functions in R/, grouped by purpose.

Clinical / Biometric

tar_age("1974-11-23", "2023-02-16")
tar_bmi(weight = 100, height = 190)
tar_bsa(height = 180, weight = 80)
tar_psa(height = 180, weight = 80)

Data Utilities

tar_count_top(mtcars, cyl, n = 2)
tar_count_na(mtcars)
tar_head_tail(mtcars, nh = 3, nt = 2)
df <- data.frame(Name = c("Hans", "Maria"), azl = c("100", "101"))
tar_dgav_lookup(df, "Hans")
tar_dgav_lookup(df, 101)
tar_yes_no(c("yes", "no", "maybe"))
tar_impute_outlier(mtcars, mpg)

Visualization / Reporting

tar_animbar(x = 45, filename = "a4", title = "%", horizontal = FALSE)
tar_flag(c("nl", "se", "es"), "rapido", output_dir = "images", overwrite = TRUE)
tar_footnote(graph, style = "color: grey; font-size: 10px;", string = "Notes...")
p + tar_ggplot_font_size(10)
tar_median_survival(df_survival, sex, time_col = "time", status_col = "status")

HIPEC Registry (CRUD + Shiny)

tar_get_table_metadata()
tar_get_next_id()
tar_create_data(new_row)
tar_read_data()
tar_update_data(updated_row)
tar_delete_data(list(id = "3"))
tar_cast_data(input_list)
tar_create_default_record()
tar_update_inputs(record, session)
tar_WellPanel(6)
tar_dateInput("FUp_6Mo_Datum", "Datum")

Developer Convenience

tar_install(dplyr)
tar_oneline()
tar_print(100)