Skip to contents

Check if the used time unit is accepted

Usage

time_unit_check(time_unit = NULL)

Arguments

time_unit

character. The used time unit. If NULL, returns a vector of accepted time units.

Value

if time_unit is character, return TRUE or FALSE. If time_unit = NULL, returns a vector of accepted time units.

Examples

if (FALSE) { # \dontrun{
  # return TRUE
  time_unit_check("yr")
  time_unit_check("Kyr")
  time_unit_check("Myr")
  time_unit_check("Gyr")
  time_unit_check("timestep")

  # return FALSE
  time_unit_check("eons")
} # }