years_until_target_reached: years_until_target_reached

Description Usage Arguments Value

View source: R/pilot_assessment_functions.R

Description

Called from within target_assess_this. Calculates the number of years until the target is reached for a single indicator, using the formula: $$ years = abs(log(final_value/temp_target)/log(1 + rate_of_change)) years = abs(log(final_value/temp_target)/log(1 + rate_of_change)) see https://intl.siyavula.com/read/maths/grade-12/finance/03-finance-01 for more information

Usage

1
2
3
4
5
6
years_until_target_reached(
  rate_of_change,
  final_value,
  temp_target,
  temp_target_trend
)

Arguments

rate_of_change

output from trend_assess_this or target_assess_this

final_value

output from trend_assess_this or target_assess_this

temp_target

output from target_assess_this

temp_target_trend

output from target_assess_this

Value

number of years (integer)


clarebetts-code/EAU_pilot_assessment documentation built on Dec. 19, 2021, 5:15 p.m.