A new set of ID levels can be created by separating those given based on a minimum gap in another set of data. This is useful for separating instruments identified only by their ID into separate events in time.
sepIdGaps(id, gapdata, minGap = 3600 * 24 * 7)
existing ID levels
the minimum "gap" to use in gapdata to create a new ID level
The assumption is that a week is a long time for a tag not to record anything.
A new set of ID levels, named following the pattern that "ID" split into 3 would provided "ID", "ID_2" and "ID_3".
It is assumed that each vector provides is sorted by
id. No checking is done, and so it is suggested that this only be
used on ID columns within existing, validated
id <- gl(2, 8) gd <- Sys.time() + 1:16 gd[c(4:6, 12:16)] <- gd[c(4:6, 12:16)] + 10000 sepIdGaps(id, gd, 1000)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.