R/check_crown_age.R

Defines functions check_crown_age

Documented in check_crown_age

#' Check if the crown age is valid
#'
#' Will \link{stop} if not.
#' @inheritParams default_params_doc
#' @export
check_crown_age <- function(crown_age) {
  assertive::assert_is_a_number(crown_age)
  assertive::assert_all_are_positive(crown_age)
}
richelbilderbeek/becosys documentation built on Oct. 19, 2020, 9:20 a.m.