download_and_resample2: Get data from province of Bozen monitoring stations. applies...

Description Usage Arguments

View source: R/download_and_resample2.R

Description

Get data from province of Bozen monitoring stations. applies a resample with "resample_provBz_data2"

Usage

1
2
3
download_and_resample2(sensor, station, datestart, dateend, roundFUN,
  round = "hour", statsFUN, spread = FALSE, notScode = FALSE,
  inshiny = FALSE, nstations = NULL, sort = NULL, name = NULL, ...)

Arguments

sensor

Sensor to download. You can check SCODES station names and sensors typing MeteoBrowser::tot_tab_def

station

Station "SCODE" to download. You can check SCODES station names and sensors typing MeteoBrowser::tot_tab_def

datestart

starting date of the timeseries. format "YYYY-MM-DD"

dateend

ending date of the timeseries. format "YYYY-MM-DD"

roundFUN

the resampling function. Possible options lubridate::ceiling_date,lubridate::floor_date,lubridate::round_date

round

the resampling period. Possible options "raw" "hour" "day" "week" "month". Passed to lubridate::round_date

statsFUN

the "statistical" function. any function that takes a vector in inpunt and a single value in output

spread

whether to spread the table or leave it in long format. Default is FALSE

inshiny

if the function is called in the shiny app. default=FALSE

nstations

if the function is called in the shiny app: number of stations * sensors. default=NULL

sort

column names on which to sort the table. available options: "NAME","TimeStamp","Sensor","Value"

name

a name to give to a column "NAME". default is the german/italian name of the station

...

additional arguments passed to statsFUN


GiulioGenova/MeteoBrowser documentation built on Nov. 5, 2019, 6:07 p.m.