indicators_by_date {SoilManageR}R Documentation

Extract indicators by a specific date

Description

Calculate for a specific date (e.g. day of sampling) and discount the indicator values of events in the past. The default half life time of all discounts is set to 1 year (365 days).

Usage

indicators_by_date(
  var_management_df,
  var_date,
  half_life_time_STIR = 365,
  half_life_time_C_input = 365,
  half_life_time_N_input = 365,
  half_life_time_soil_cover = 365
)

Arguments

var_management_df

input management data frame

var_date

date of the extraction in the format "YYYY-MM-DD"

half_life_time_STIR

half life time for the discounting of the STIR value

half_life_time_C_input

half life time for the discounting of the C inputs

half_life_time_N_input

half life time for the discounting of the N inputs

half_life_time_soil_cover

half life time for the discounting of soil cover days

Value

tibble with the discounted indicator values per date

Examples

# calculate indicators by a specific date

  indicators_by_date(EXAMPLE_data, "2019-10-03")
 
# this would return a tibble, but it may take a while


[Package SoilManageR version 1.1.0 Index]