Description Usage Arguments Value
View source: R/extract_activity_grid.R
Takes a dataset containing activity counts for multiple groups and creates a standard grid/vector of activity counts that can be applied across all of the groups in the dataset. Activity counts assumed to be nested. See output of prepare_sim_data
1 2 3 4 5 6 7 | extract_activity_grid(
data,
activity_col,
group_col,
grid_length = 100,
quantiles = c(0.05, 0.95)
)
|
data |
dataset containing groups and activity |
activity_col |
the name of the column that contains the activity data |
group_col |
the name of the column that contains the grouping label |
grid_length |
number describing how long the activity grid should be |
quantiles |
two percentiles describing what percentiles of activity points to keep in grid |
a vector of equidistant activity values from the maximum to the minimum in the data
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.