is_unit_dist: Test unit of length input

View source: R/i.R

is_unit_distR Documentation

Test unit of length input

Description

Tests if input is a valid unit of distance.

Usage

is_unit_dist(input, error = FALSE)

Arguments

input

Character vector of distance units. Obtain valid input options with validUnitsOfLength().

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.