View source: R/interval_aggregation.R
1 2 3 |
data |
Data in a data.frame format |
variable |
Name of variable in the data set you would like to re-structure |
ID |
Name of ID variable in the data set |
timestamp |
Name of time variable in the data set |
format |
Date/time format of timestamp. Default is " \itemintervalThe interval of time in minute. Default is 60 (i.e. The measurement is evaluated every hour.) \itemaggregatefunFunction used for aggregation. Default is sum. \itemis.na.zeroIf TRUE, NA is considered as 0. If FALSE, the NA is considered as missing. Defulat is TRUE. \itemremove.naIf TRUE, the NAs will be removed in the aggregated data. Defulat is TRUE. |
Aggregate the raw data into an equally-spaced data frame
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.