envpredutils.env_period_cutter: A function to cut the environmental data into the correct...

View source: R/DyMEP_apply_unknown_environment_prediction_utils.R

envpredutils.env_period_cutterR Documentation

A function to cut the environmental data into the correct length

Description

A function to cut the environmental data into the correct length

Usage

envpredutils.env_period_cutter(
  start_date,
  env_variables,
  env_data,
  max_period_length = 300
)

Arguments

start_date

start of the phase

env_variables

name of the wanted variables

env_data

actual environmental data

max_period_length

in order to reduce computing time, a maximal amount of days will be considered (default = 300); if less data available, less days will be considered

Value

list with cut environmental covariates for the given period

Examples

envpredutils.env_period_cutter(Sys.Date(),
c("tas"), list("tas"=data.frame("DATE"= seq(as.Date(Sys.Date()),
 (Sys.Date()+100),by="day"),
  "VALUE"= c(1:101))), 50)

DyMEP documentation built on May 29, 2024, 4:29 a.m.