get_event_ids | R Documentation |
This function returns a vector with the timeseries of event IDs according to the input keep column of the dataframe.
get_event_ids(df)
df |
A dataframe with a set and a keep column to get the timeseries of
event IDs. The |
a vector of the same length as the rows of the input dataframe with the timeseries of event IDs.
Marina Papadopoulou m.papadopoulou.rug@gmail.com
define_events
data <- data.frame(
set = c(rep('1', 50), rep('2', 50)),
keep = c(rep(FALSE, 10), rep(TRUE, 70), rep(FALSE, 20))
)
data$event <- get_event_ids(data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.