Description Usage Arguments Value
View source: R/group_datetime.R
Group DateTime by user defined period (year, month, day, hour, minute)
1 2 | group_datetime(df, by = 600, fun = "stats::median",
col_datetime = "DateTime", col_datatype = "DataType", dbg = TRUE)
|
df |
a data frame as retrieved by import_data_haridwar() |
by |
an aggregation time step in seconds (default: 600 seconds) for intra- day aggregation or "day", "month" or "year" for longer time spans |
fun |
function to be used for grouping measurement data of column ParameterValue (default: stats::median) (default: system.file("shiny/haridwar/.my.cnf", package = "aquanes.report")) |
col_datetime |
column name of datetime column (default: DateTime) |
col_datatype |
column name of data type column (default: DataType) |
dbg |
print debug information |
returns data frame with data aggregated according to user defined aggregation time step
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.