download_qlt_data: Download QLT data

Description Usage Arguments Value

View source: R/defunct.R

Description

Downloads QLT data from SQLite database.

Usage

1
2
3
4
download_qlt_data(code = "DDM", period = "hourly",
  startDate = as.Date("2014-01-01"), endDate = Sys.Date(),
  status = "questionable", surrogate = "missing", add_spaces = TRUE,
  n = Inf, db = getOption("kootqlt.db", "kootqlt.db"))

Arguments

code

A character vector of the station codes.

period

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

startDate

A Date element of the beginning of the time series.

endDate

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_spaces

A flag indicating whether missing values should be filled in with NAs.

n

A number indicating the maximum number of rows to download.

db

A string indicating the path to the database.

Value

A data.frame object.


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