Learn R Programming

webTRISr (version 0.2.0)

webtris_report: webtris_report

Description

webtris_report

Usage

webtris_report(sites, start_date, end_date, report_type,
  maxrequest = 10000, verbose = FALSE, return_raw = FALSE)

Arguments

sites

siteId(s) i.e. 7 or '7' or c('7','8', '9')

start_date

in format 'DDMMYYYY' or as a Date object

end_date

in format 'DDMMYYYY' or as a Date object

report_type

options are: "daily", "annual-totals", "annual-monthly", "monthly-summary", "monthly-daily", "monthly-daily-aggregate", "monthly-hourly-aggregate"

maxrequest

Maximum number of rows to return per request (optional)

verbose

Prints the API call

return_raw

Return a raw httr response rather than a data frame

Value

a dataframe (default) or httr object (if return_raw=TRUE)

Examples

Run this code
# NOT RUN {
webtris_report(sites=c("7"), start_date="01-01-2017", end_date="01-03-2017", report_type ='daily')
# }

Run the code above in your browser using DataLab