envpredutils.env_period_cutter {DyMEP}R 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)

[Package DyMEP version 0.1.2 Index]