Description Usage Arguments Value Author(s) Examples
View source: R/cal.convert.365togreg.R
cal.convert.365togreg
converts a timeseries of
a 365-days calendar (complete years) to Gregorian calendar by
filling in NAs.
1 2 | cal.convert.365togreg(org.series, yearstart, yearend, fill.vector,
data.type = 0)
|
org.series |
Original time series (complete years only!). |
yearstart |
First year of original 365-day time series. |
yearend |
Last year of original 365-day time series. |
fill.vector |
Vector indicating after which days in a
given year NA days should introduced; output of function
|
data.type |
If 0: fill vector is provided as an
R object (default). If 1: fill vector is provided in an
RData file containing the fill vector only
(filename is provided by |
Vector (365/366 x nyears): original time series but in Gregorian calendar (original series filled with NAs).
Sven Kotlarski (MeteoSwiss)
1 2 3 4 5 6 7 | ## Not run:
# convert daily series of a 365-days calendar for the years
# 1980 to 2009 to a Gregorian calendar. NA indices provided as vector
# 'indices'
cal.convert.365togreg.grid(series,1980,2009,indices,0)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.