Learn R Programming

ecoengine (version 1.3)

ee_sensor_agg: sensor aggregation

Description

Aggregated sensor data for any station.

Usage

ee_sensor_agg(sensor_id = NULL, page = NULL, page_size = 25,
  hours = NULL, minutes = NULL, seconds = NULL, days = NULL,
  weeks = NULL, month = NULL, years = NULL, min_date = NULL,
  max_date = NULL, quiet = FALSE, progress = TRUE, foptions = list())

Arguments

page
Page number
page_size
The number of observations per page returned by the query. The package default is 25 observations. The API default, however, is 10. Setting this number higher will require fewer calls (i.e. pages) but a large size may also fail o
min_date
Lower date bound. Most be in format Y-m-D h:m:s. This package uses lubridate's ymd_hms function to format dates.
max_date
upper date bound. Most be in format Y-m-D h:m:s. This package uses lubridate's ymd_hms function to format dates.
sensor_id
The id of the sensor.
hours
Time interval in hours
minutes
Time interval in minutes
seconds
Time interval in seconds
days
Time interval in days
weeks
Time interval in weeks
month
Time interval in months
years
Time interval in years
quiet
Default is FALSE. Set to TRUE to suppress messages.
progress
Progress bar is set to TRUE by default. Use FALSE especially when calling functions inside documents.
foptions
A list of additional arguments for httr. There is no reason to use this argument except for debugging purposes.

Examples

Run this code
aggregated_data <-  ee_sensor_agg(sensor_id = 1625, weeks = 2, page = 1)
# aggregated_data <-  ee_sensor_agg(sensor_id = 1625, weeks = 2, page = "all")

Run the code above in your browser using DataLab