Description Usage Arguments Value Note Author(s) See Also Examples
View source: R/extractmonths.R
Extracts the rows of a matrix corresponding to requested months of a year given the date (origin) of the first row
1 2 3 |
data |
an input data matrix where each row corresponds to a daily record |
ndim_max |
maximum (integer) number of rows in |
when |
character vactor of months for which the data are required.
It must be a subset of |
year |
year(s) when data must be extracted |
origin |
date corresponding to the first row of |
a matrix containing the requested rows
It uses months
and julian
Emanuele Cordano, Emanuele Eccel
1 2 3 4 5 6 | extractmonths()
data(trentino)
dates <- sprintf("%02d-%02d-%02d",TEMPERATURE_MAX$year,TEMPERATURE_MAX$month,TEMPERATURE_MAX$day)
origin <- dates[1]
out <- extractmonths(data=TEMPERATURE_MAX,origin=origin)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.