View source: R/extractObsConcTime_mult.R
extractObsConcTime_mult | R Documentation |
Extract observed data from Excel files that follow the Simcyp Simulator template for converting concentration-time data into an XML file.
extractObsConcTime_mult(
obs_data_files = NA,
compound_name = NA,
perpetrator_name = NA,
returnDosingInfo = FALSE
)
obs_data_files |
a character vector of the names of the Excel files containing the observed concentration-time data, each in quotes, NA (default) to extract data from all possible observed data Excel files in that folder, or "recursive" to extract data from all possible observed data Excel files in the current folder and any subfolders as well. These are the files that are ready to be converted to XML files, not files that contain only the digitized time and concentration data and not the XML files themselves that you would include in a Simulator workspace for observed data. |
compound_name |
the name of the compound, e.g., "midazolam". If you have
more than one compound that you want to specify – for example, the data
include both the substrate and primary metabolite 1 – you can specify them
with a named character vector
like this: |
perpetrator_name |
the name of the perpetrator, where applicable, e.g., "itraconazole". This will be listed in the column "Inhibitor" in the output. |
returnDosingInfo |
TRUE or FALSE (default) for whether to return a second data.frame with dosing and demographic information from the Excel file. |
add_t0 |
TRUE or FALSE (default) for whether to add t0 points if they're
missing. Sometimes, observed data do not include a measurement at t0
because, presumably, the concentration should always be 0 at that time. If
you're using these data to calculate PK, though, you'll miss that initial
part of the AUC if t0 is missing. If |
a data.frame with the following columns:
the individual ID
the compound ID listed in the observed file, e.g., "Sub Plasma", "Sub PM1 Plasma", "Sub (Inb) Plasma"
the tissue
the dose of the substrate and any perpetrators present
time since dosing
concentration
the units of measurement for the time column
the units of measurement for the concentration column
the columns in the template for "Period" and "Covariates" but with R-friendly names. (Currently, no dosing information is pulled because the data format is different from what we need for other functions related to concentration-time data.)
extractObsConcTime(obs_data_file = "My observed data.xlsx")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.