Learn R Programming

ecoengine (version 1.3)

ee_sensor_data: Sensor data

Description

Retrieves data for any sensor returned by ee_list_sensors.

Usage

ee_sensor_data(sensor_id = NULL, page = NULL, page_size = 25,
  quiet = FALSE, progress = TRUE, foptions = list())

Arguments

sensor_id
The id of the sensor.
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
quiet
Default is FALSE. Set to TRUE to suppress output.
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
full_sensor_list <- ee_sensors()
station <- ee_list_sensors()$record
page_1_data <- ee_sensor_data(sensor_id = station[1], page = 1)
page_2_data <- ee_sensor_data(station[1], page = 1:3)

Run the code above in your browser using DataLab