get_EcoCounter_data: Get location from one EcoCounter installation

Description Usage Arguments Value Function version Author(s) Examples

View source: R/get_EcoCounter_data.R

Description

Get location from one EcoCounter installation

Usage

1
get_EcoCounter_data(EcoCounterId, from = NULL, to = NULL, step = 4)

Arguments

EcoCounterId

character or integer or vector of character or integer: Id of the EcoCounter installation

from

character: Start date (YYYYMMDD). If no date is submitted, the day before yesterday is automatically set.

to

character: End date (YYYYMMDD). If no date is submitted, yesterday is automatically set. Note: When date is the date of today, usually no data are available.

step

integer: Get data : 2 (15 min), 3 (hourly), 4 (daily), 5 (weekly), 6 (monthly), 7 (yearly). With default: 4.

Value

data.frame with parsed data from EcoCounter API

Function version

0.0.1

Author(s)

Johannes Friedrich

Examples

1
2
3
4
5
EcoCounterId <- 100037011
get_EcoCounter_data(EcoCounterId)

## set specific date and request weekly data (step = 5)
get_EcoCounter_data(EcoCounterId, from = "20171101", to = "20171201", step = 5)

JohannesFriedrich/EcoCounteR documentation built on June 16, 2020, 11:41 p.m.