This function is a convenient wrapper for selecting data from a measurement
by calling influx_query
with the corresponding query.
influx_select(con, db, field_keys, rp = NULL, measurement, where = NULL,
group_by = NULL, limit = NULL, slimit = FALSE, offset = NULL,
order_desc = FALSE, return_xts = TRUE, simplifyList = FALSE)
An influx_connection
object (s. influx_connection
).
Sets the target database for the query.
Specifies the fields to be selected.
The name of the retention policy.
Sets the name of the measurement.
Apply filter on tag key values.
The group_by clause in InfluxDB is used not only for grouping by given values, but also for grouping by given time buckets.
Limits the number of the n oldest points to be returned.
logical. Sets limiting procedure (slimit vs. limit).
Offsets the returned points by the value provided.
logical. Change sort order to descending.
logical. Sets the return type. If set to TRUE, a list of xts objects is returned, FALSE gives list of tibbles.
logical. If only one series is returned, the result can be flatten to directly get either a tibble or an xts object (instead of a list) (default is FALSE).
A list of xts or tibbles.