View source: R/pipeline-loadgeneric.R
| ensure_block_col | R Documentation |
Adds a block column to an events or blinks data frame so that it can be
split into the same per-block structure as the time series. If the data
span a single block, every row is assigned to that block; otherwise rows are
assigned to whichever block's timestamp range contains them. Routing fails
(with an informative error) when a timestamp matches no block or falls within
more than one overlapping block range – supply an explicit block column to
resolve the ambiguity.
ensure_block_col(df, time_col, raw_df)
df |
An events or blinks data frame. |
time_col |
Name of the timestamp column to match against block ranges. |
raw_df |
The assembled timeseries data frame (with a |
df with a block column added (if not already present).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.