influx_query: Query an InfluxDB server

Description Usage Arguments Value References See Also

View source: R/influxdb_query.R

Description

This functions queries an InfluxDB server.

Usage

1
2
3
influx_query(con, db = NULL, query = "SELECT * FROM measurement",
  timestamp_format = c("n", "u", "ms", "s", "m", "h"),
  return_xts = TRUE, chunked = FALSE, simplifyList = FALSE)

Arguments

con

An influx_connection object (s. influx_connection).

db

Sets the target database for the query.

query

The InfluxDB query to be sent.

timestamp_format

Sets the timestamp format ("n", "u", "ms", "s", "m", "h").

return_xts

logical. Sets the return type. If set to TRUE, xts objects are returned, FALSE gives tibbles.

chunked

Either FALSE or an integer. If FALSE, series are not requested in streamed batches. If an integer is provided, responses will be chunked by series or by every chunked points. Chunks are merged internally.

simplifyList

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).

Value

A list of tibble or xts objects. Empty query results yield to NULL.

References

https://docs.influxdata.com/influxdb/

See Also

xts, influx_connection


crab1234/influxdbr- documentation built on Jan. 12, 2020, 6:28 p.m.