as.NONMEMdata: Convert a PKNCA object into a NONMEM-ready dataset

Description Usage Arguments Details Value Methods (by class)

View source: R/as.NONMEM.R

Description

Convert a PKNCA object into a NONMEM-ready dataset

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
as.NONMEMdata(object, ...)

## S3 method for class 'PKNCAdata'
as.NONMEMdata(object, ..., conc_cmt_map, dose_cmt_map)

## S3 method for class 'PKNCAconc'
as.NONMEMdata(object, ..., conc_cmt_map = NULL)

## S3 method for class 'PKNCAdose'
as.NONMEMdata(object, ..., dose_cmt_map = NULL)

Arguments

object

The object to make into a NONMEM-ready dataset. To ensure consistent output of reset data, it's preferred to provide a PKNCAdata object.

...

Ignored

conc_cmt_map, dose_cmt_map

A data.frame (or similar object) that indicates the mapping between concentration or dosing data and compartment names. See details for more information.

Details

The attribute "NONMEM_column" will be added to columns to define the following.

For every data type:

For concentration data, name mapping for every data type plus:

For dose data, name mapping for every data type plus:

conc_cmt_map and dose_cmt_map will use the dplyr::left_join function to combine with the data, so matching columns will define the mapping. One column must be named "CMT" in the data.frame.

Value

A data.frame or similar ready for export to a .csv file as a NONMEM-ready dataset with an attribute "name_map" for mapping the data.frame names to NONMEM names.

Methods (by class)


billdenney/pknca.portation documentation built on May 3, 2019, 2:55 p.m.