#' Additional arguments:
intervals: an integer (no lower than 5), for the days intervals when
timeseries = TRUE
last.day: optional to span, an object of class Date or
any other object that can be coerced to Date (e.g. integer, character
YYYY-MM-DD) for the last day of the time series
dates: a character (or Date or numeric) vector for the dates of tmax and tmin
in the default method
data.from: character for the source of remote data. Current remote source
is: 'nasapower'
pars: character vector for the precipitation data to be fetched. If
data.from is 'nasapower', the default precipitation parameter is "PRECTOTCORR".
days.before: optional, an integer for the number of days before
day.one to be included in the timespan.
# S3 Methods
The matrix method assumes that object contains climate data available in
your R section; see help("rain_dat", package = "climatrends") for an example on input
structure.
The data.frame and the sf methods assumes that the climate data
will e fetched from a remote (cloud) source that be adjusted using the argument
data.from.
When timeseries = TRUE, an id is created,
which is the index for the rownames of the inputted object.