Learn R Programming

linpk (version 1.1.2)

as.data.frame.pkprofile: Coerce a pkprofile to a data.frame

Description

Coerce a pkprofile to a data.frame

Usage

# S3 method for pkprofile
as.data.frame(x, ..., col.names = c("time", "conc"), .state = FALSE)

Value

A data.frame with columns time and conc (or the names specified in col.names). If .state == TRUE, then the complete state is appended (as a matrix column).

Arguments

x

An object of class pkprofile.

...

Further arguments passed along.

col.names

Character vector of length 2 giving the names for the time and concentration columns.

.state

Include the complete state along with time and conc?