Tests if input is a valid unit of area.

is_unit_area(input, error = FALSE)

Arguments

input

Character vector of area units. Obtain valid input options with validUnitsOfArea().

error

Logical. If TRUE and the input is invalid the function throws an error.

Value

Logical value and/or error if argument error is TRUE.