scraper_cetesb: Scraper CETESB

Description Usage Arguments Value Examples

View source: R/scraper_cetesb.R

Description

Scraper CETESB

Usage

1
2
scraper_cetesb(station, parameter, start, end, login, password,
  safe = FALSE, file = NULL)

Arguments

station

A numeric value indicating the station id from where you wish to get the data. See Rpollution::cetesb_station_ids.

start

A string in the format "dd/mm/aaaa" representing the initial day for the data selection.

end

A string in the format "dd/mm/aaaa" representing the final day for the data selection.

login

A string with your login on Qualar system.

password

A string with your passoword on Qualar system.

safe

If FALSE (default) the function will return a error if it can't extract the requested data.

file

A string containing a path to a .rds file where the data will be written. If NULL (default) the data will be return.

parameters

A numeric vector of maximum length equal to 3 indicating the ids of the parameters you want to get the data from. See Rpollution::cetesb_param_ids.

Value

A tibble with the data returned by the Qualar system.

Examples

1
2
3
4
5
6
7
8
9
## Not run: 

# Ozone for 'Dom Pedro II' station for January 2018.

scraper_cetesb(station = 72, parameter = 63,
               start = "01/01/2018", end = "31/01/2018",
               login = "login", password = "password")

## End(Not run)

williamorim/Rpollution documentation built on Jan. 20, 2021, 12:06 p.m.