Learn R Programming

campsis (version 1.8.1)

getTimes: Get all distinct times for the specified object.

Description

Get all distinct times for the specified object.

Usage

getTimes(object, ...)

# S4 method for treatment getTimes(object, unwrap = TRUE)

# S4 method for observations getTimes(object, doseTimes = NULL)

# S4 method for observations_set getTimes(object, doseTimes = NULL)

# S4 method for arm getTimes(object)

# S4 method for arms getTimes(object)

# S4 method for events getTimes(object)

# S4 method for dataset getTimes(object)

Value

numeric vector with all unique times, sorted

Arguments

object

any object

...

extra arguments like `doseTimes` in observations or `unwrap` in treatment

unwrap

unwrap treatment before accessing the times, default value is TRUE

doseTimes

times of the doses, only needed if a [DosingSchedule()] is referred to