is_unit_area: Test unit of area input

View source: R/i.R

is_unit_areaR Documentation

Test unit of area input

Description

Tests if input is a valid unit of area.

Usage

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.


kueckelj/SPATA2 documentation built on March 16, 2024, 10:25 a.m.