Get data in shiny module
getCurrentStockData(data, col_date, col_series, zoom = NULL,
maxPoints = 1000, tz = "UTC", ts = c("5 min", "10 min", "30 min",
"hour", "3 hour", "12 hour", "day", "week", "month", "year"),
fun_aggr = "mean", treat_missing = FALSE, maxgap = Inf,
type_aggr = "first")
: data.frame to transform
: Date column name, default to "date". Must be "POSIXct" or "CET24" colum
: Column name of quantitative variable(s) to be transformed. Default to setdiff(colnames(data), "date")
: List for init subset. NULL to keep all
: Maximal number of rows in results
: Timezone of result. Defaut to "UTC".
: Increment of the sequence. Default to "10 min". Can be a number, in seconds, or a character string containing one of "min", "hour", "day". This can optionally be preceded by a positive integer and a space
: Aggregation function to use ("min", "max", "sum", "mean", "first", "last"). Default to "mean".
: Boolean. Default to FALSE
Whether or not to interpolate missing values ?
see na.approx
: When interpolate missing values with na.approx
.
Maximum number of consecutive NAs to fill. Defaut to Inf.
: Character. Type of aggregation
"first" : Date/Time result is equal to minimum of sequence, and this minimum is included in aggregation
"last" : Date/Time result is equal to maximum of sequence, and this maximum is included in aggregation