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

View source: R/linpk.R

as.data.frame.pkprofileR Documentation

Coerce a pkprofile to a data.frame

Description

Coerce a pkprofile to a data.frame

Usage

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

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?

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).


linpk documentation built on Dec. 4, 2022, 5:06 p.m.