qlt_download_data: Download QLT data

Description Usage Arguments Value

View source: R/download-data.R

Description

Downloads QLT data from SQLite database.

Usage

1
2
3
4
5
qlt_download_data(station = "DDM", frequency = "hourly",
  start_date = as.Date("2016-01-01"), end_date = Sys.Date(),
  status = "questionable", surrogate = "missing", add_missing = TRUE,
  file = getOption("kootqlt.file", "kootqlt"),
  dir = getOption("kootqlt.dir", "."))

Arguments

station

A character vector of the station codes.

frequency

A string of the period to average by (by default 'hourly' but can also be 'raw' or 'daily').

start_date

A Date element of the beginning of the time series.

end_date

A Date element of the end of the time series.

status

A string indicating which type of values should be included possible values are 'reasonable', 'questionable' and 'erroneous'. The status of the values is indicated in the returned data frame.

surrogate

A string indicating whether to exclude surrogates ('none'), replace missing values with surrogates ('missing') or include all surrogates ('duplicate')

add_missing

A flag indicating whether to add missing values.

file

A string of the name of the SQLite database to create (without the extension .sqlite).

dir

A string of the directory.

Value

A tbl data frame.


poissonconsulting/kootqlt documentation built on May 25, 2019, 10:25 a.m.