View source: R/Functions_Supporting.R
determine_sw2_sim_time | R Documentation |
data.frame
Prepare specified vs. requested time step data.frame
determine_sw2_sim_time(
xt,
req_years = NULL,
sw2_tp = c("Day", "Month", "Year")
)
xt |
A two-dimensional object with columns
|
req_years |
An integer vector of Calendar years. If missing or |
sw2_tp |
A character string. The daily, monthly, or yearly time step
describing content of |
A data.frame
with four columns Year
, Month
, Day
, mode
.
Rows represent daily, monthly, or yearly time steps that combine
requested (if req_years
was provided) and simulated (xt
) time steps.
mode
is "nosim"
if a time step was not simulated (but requested),
"sim_keep"
if a time step was simulated
(and requested or req_years
is missing), or
"sim_discard"
if a time step was simulated (but not requested).
The column Day
contains day of year (and not day of month)!
xty <- data.frame(Year = 1991:2020)
determine_sw2_sim_time(xty, sw2_tp = "Year")
determine_sw2_sim_time(xty, req_years = 1981:2010, sw2_tp = "Year")
determine_sw2_sim_time(xty, req_years = 2011:2030, sw2_tp = "Year")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.