create_step_duration_max | R Documentation |
Create Step Duration At Large Max
create_step_duration_max(
date_released,
date_recovered,
date_released_start,
date_recovered_end,
step_interval,
step_duration_max
)
date_released |
|
date_recovered |
|
date_released_start |
|
date_recovered_end |
|
step_interval |
|
step_duration_max |
|
integer()
vector()
# Yearly
u <- rep("2011-01-01", 5)
v <- c("2011-01-01", "2012-01-01", NA, "2020-01-01", "2021-01-01")
w <- c("2011-01-01")
x <- c("2020-01-01")
y <- "year"
z <- 10
create_step_duration_max(u, v, w, x, y, z)
# Quarterly
u <- rep("2011-01-01", 5)
v <- c("2011-01-01", "2012-12-31", NA, "2020-12-31", "2021-01-01")
w <- c("2011-01-01")
x <- c("2020-01-01")
y <- "quarter"
z <- 40
create_step_duration_max(u, v, w, x, y, z)
# Monthly
u <- rep("2011-01-01", 5)
v <- c("2011-01-01", "2011-02-01", NA, "2020-12-31", "2021-01-01")
w <- c("2011-01-01")
x <- c("2020-01-01")
y <- "month"
z <- 120
create_step_duration_max(u, v, w, x, y, z)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.