are_max_rates_gt_rates: Check if maximum rates are greater or equal to rates

View source: R/DAISIE_check_format.R

are_max_rates_gt_ratesR Documentation

Check if maximum rates are greater or equal to rates

Description

Check if maximum rates are greater or equal to rates

Usage

are_max_rates_gt_rates(rates, max_rates)

Arguments

rates

named list of numeric rates as returned by update_rates().

max_rates

named list of numeric max rates as returned by update_max_rates().

Value

TRUE if maximum rates are greater or equal than rates, FALSE otherwise.

Author(s)

Joshua Lambert, Pedro Neves

See Also

are_rates, are_max_rates

Examples

rates <- list(
  ext_rate = 0.1,
  immig_rate = 0.1,
  ana_rate = 0.1,
  clado_rate = 0.1
)
max_rates <- list(
  ext_max_rate = 1,
  immig_max_rate = 1,
  ana_max_rate = 1,
  clado_max_rate = 1
)
testthat::expect_true(
  DAISIE:::are_max_rates_gt_rates(
    rates = rates,
    max_rates = max_rates
  )
)

DAISIE documentation built on June 2, 2022, 5:07 p.m.