extractmonths: Extracts the rows of a matrix corresponding to requested...

Description Usage Arguments Value Note See Also

View source: R/extractmonths.R

Description

@author Emanuele Cordano, Emanuele Eccel

Usage

1
2
3
extractmonths(data = array(1:ndim_max, dim = c(ndim_max, 1)),
  ndim_max = 1e+05, when = c("Dec", "Jan", "Feb"), year = NULL,
  origin = "1961-1-1")

Arguments

data

an input data matrix where each row corresponds to a daily record

ndim_max

maximum (integer) number of rows in data where to find when. Default is 100000 and works if data is missing.

@export

when

character vactor of months for which the data are required. It must be a subset of c("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec")

year

year(s) when data must be extracted

origin

date corresponding to the first row of data

Value

a matrix containing the requested rows

Note

It uses months and julian

See Also

extractdays


RMAWGEN documentation built on May 29, 2017, 9:09 a.m.