time_calc {PKNCA}R Documentation

Times relative to an event (typically dosing)

Description

Times relative to an event (typically dosing)

Usage

time_calc(time_event, time_obs, units = NULL)

Arguments

time_event

A vector of times for events

time_obs

A vector of times for observations

units

Passed to 'base::as.numeric.difftime()'

Value

A data.frame with columns for:

'time_after' and 'time_before' are calculated if they are at the same time as a dose, they equal zero, and otherwise, they are calculated relative to the dose number in the 'event_number_*' columns.


[Package PKNCA version 0.10.2 Index]