indicators_by_date: Extract indicators by a specific date

View source: R/indicators_by_date.R

indicators_by_dateR 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


SoilManageR documentation built on June 8, 2025, 9:36 p.m.