cmplt.qobs: Complete QOBS for use in COSERO

View source: R/cmplt.qobs.r

cmplt.qobsR Documentation

Complete QOBS for use in COSERO

Description

Stick together an xts time series with start and end dates that might lay outside the original time series

Usage

cmplt.qobs(x, start = NULL, end = NULL, TZ = "utc", file = NULL, ...)

Arguments

x

an xts object

start

a POSIXct object or a character string that can be coerced to such. Gives the desired start time of the time series.

end

a POSIXct object or a character string that can be coerced to such. Gives the desired end time of the time series.

TZ

time zone specification to be used for the conversion, if one is required. System-specific (see time zones), but "" is the current time zone, and "GMT" is UTC (Universal Time, Coordinated). Invalid values are most commonly treated as UTC, on some platforms with a warning.

file

name of the outputfile or NULL. If the latter, no file will be written.

...

additional parameters passed on to as.POSIXct

Details

An xts object is extended at the beginning and end of the dates. Duplicated values (as they might exist because of time changes) are removed. NA values are substitued with -0.01 which is COSEROS standard for missing.

If file != NULL a txt file will be written using write.xts from the TigR package

Value

an xts object

Author(s)

Simon Frey


freysimon/jaguR documentation built on June 29, 2023, 4:28 p.m.