renameStats: INTERNAL: Rename the statistics listed in Simulator output to...

View source: R/renameStats.R

renameStatsR Documentation

INTERNAL: Rename the statistics listed in Simulator output to R-friendly versions

Description

renameStats takes Simulator statistic names such as "90 interval around the geometric mean(lower limit)" and converts them to names that would work for R column names, e.g., "CI90_lower", or converts them to names that comply with Simcyp Consultancy Team report templates. This is mainly meant for internal use in the SimcypConsultancy package to help make sure we're naming things consistently.

Usage

renameStats(OrigStat, use = "Simulator to R")

Arguments

OrigStat

the original statistic name

use

options are "Simulator to R" for internal use when renaming stats from Simulator-output names into R-friendly column names, "report" for renaming R columns into the values that show up in the Simcyp Consultancy report template tables of PK parameters, or "report to R" when reversing from report-friendly names to R-friendly names.

Value

an R-friendly version of that statistic name

Examples

renameStats(c("Geometric Mean", "Min Val", "5th centile"))


shirewoman2/Consultancy documentation built on Feb. 18, 2025, 10 p.m.