man-roxygen/timeseriesDocs.R

#' @title Get quality-checked timeseries data
#' @md
#' @description
#' This function returns a quality-checked timeseries from
#' Water Data Online.
#'
#' @param parameter_type The water data parameter type (e.g. Water Course
#' Discharge). See \code{\link{parameters()}} for a full list.
#' @param station_number The AWRC station number.
#' @param start_date Start date formatted as a string or date class
#' (YYYY-MM-DD).
#' @param end_date End date formatted as a string or date class (YYYY-MM-DD).
#' @param tz Optional: the desired time zone for the output timeseries. Input
#' must be an Olson Name (see `OlsonNames()`). By default the timeseries are
#' returned in non-DST time zones (AEST, ACST or AWST) depending on the
#' station location.
#' @param return_fields Optional: columns to be returned from Water Data Online.
#' By default Timestamp, Value and Quality Code are returned.
#'
#' @details
#' For the parameters (and their units) that can be requested, see
#' \link{parameters}. More information can be found in the Water Data Online
#' SOS manual (URL in See Also below).
#'
#' Common valid return fields are:
#'
#' * Timestamp
#' * Value
#' * Quality Code
#' * Interpolation Type
#'
#' Other valid return fields (depending on the parameter requested) may be:
#'
#' * Absolute Value
#' * AV Interpolation
#' * AV Quality Code
#' * Runoff Value
#' * RV Interpolation
#' * RV Quality Code
#' * Aggregation
#' * Accuracy
#'
#' If the request is not valid it will fail.
#'
#' @return A tibble with the requested return fields, which by default are
#' `Timestamp`, `Value` and `Quality Code`. Zero row tibbles are returned if
#' no data is available for the requested dates. The aggregation of data is
#' generally the mean for most variables, except for rainfall and evaporation
#' which is the sum over the chosen period.
#'
#' @seealso
#' * \url{http://www.bom.gov.au/waterdata/}
#' * [BoM Guide to Sensor Observation Services (SOS2) for Water Data Online](http://www.bom.gov.au/waterdata/wiski-web-public/Guide\%20to\%20Sensor\%20Observation\%20Services\%20(SOS2)\%20for\%20Water\%20Data\%20\%20Online\%20v1.0.1.pdf)
#'
#' @author Alexander Buzacott
#'
a-buz/bomWater documentation built on Sept. 3, 2021, 8:21 a.m.