extractyears {RMAWGEN} | R Documentation |
Extracts the elements of a data frame corresponding to a period between year_min
and year_max
for the stations listed in station
Description
Extracts the elements of a data frame corresponding to a period between year_min
and year_max
for the stations listed in station
Usage
extractyears(data, year_min = 1961, year_max = 1990,
station = c("T0001", "T0014", "T0129"))
Arguments
data |
a dataframe containing daily data. |
year_min |
start year |
year_max |
end year |
station |
character vector of the IDs of the station where the data are required |
Value
a matrix containing the requested daily data where each day corresponds to a row and each station corresponds to a column
Note
The input data frame data
must have the following fields: year,month,day,variables_ID1,variables_ID2,...
where the fields ,variables_ID1,variables_ID2,...
contain the daily variables referred to the respective stations and the field names are replaced with the respective station ID.
[Package RMAWGEN version 1.3.7 Index]