expand_observations | R Documentation |
Insert observations into a data set
expand_observations(data, times, unique = FALSE, obs_pos = -1L)
data |
a data set or event object. |
times |
a vector of observation times. |
unique |
|
obs_pos |
determines sorting order for observations; use |
Non-numeric columns will be dropped with a warning.
A data frame with additional rows for added observation records.
data <- expand.ev(amt = c(100, 200, 300))
expand_observations(data, times = seq(0, 48, 2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.