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

Description Usage Arguments Value Author(s) See Also Examples

View source: R/DAISIE_check_format.R

Description

Check if maximum rates are greater or equal to rates

Usage

1
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
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 Aug. 26, 2020, 5:12 p.m.