extract_activity_grid: Given a matrix of activity data, output a standardized...

Description Usage Arguments Value

View source: R/extract_activity_grid.R

Description

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

Usage

1
2
3
4
5
6
7
extract_activity_grid(
  data,
  activity_col,
  group_col,
  grid_length = 100,
  quantiles = c(0.05, 0.95)
)

Arguments

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

Value

a vector of equidistant activity values from the maximum to the minimum in the data


thecbp/ActivityProfileR documentation built on April 10, 2021, 6:44 p.m.