| time_calc | R Documentation |
Times relative to an event (typically dosing)
time_calc(time_event, time_obs, units = NULL)
time_event |
A vector of times for events |
time_obs |
A vector of times for observations |
units |
Passed to |
A data.frame with columns for:
The index of time_event that is the last one before time_obs or NA if none are before.
The index of time_event that is the first one after time_obs or NA if none are after.
The minimum time that the current time_obs is before a time_event, 0 if at least one time_obs == time_event.
The minimum time that the current time_obs is after a time_event, 0 if at least one time_obs == time_event.
The time after the first event (may be negative or positive).
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.