View source: R/helper_functions.R
create_grps | R Documentation |
Used in the following functions:
arv
, bp_mag
, bp_range
, cv
, sv
, bp_center
, bp_stats
create_grps(data, inc_date, add_groups, inc_wake)
data |
Supplied data from function |
inc_date |
TRUE/FALSE indicator from function argument for whether or not to include the date in grouping |
add_groups |
Character vector from function argument input corresponding to which other variables other than "ID", "WAKE", and "VISIT" to include from the supplied data's column names. If "DATE" is supplied in add_groups, and inc_date = TRUE, the duplicate will be omitted. |
inc_wake |
Optional argument corresponding to whether or not to include |
A vector of string values corresponding to the column names that will subset / group the data in dplyr functions
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.