checkValidType: Check a value (type) against a vector of valid types

View source: R/checkValidType.R

checkValidTypeR Documentation

Check a value (type) against a vector of valid types

Description

Function to check type against vector of valid types.

Usage

checkValidType(type, valid_types)

Arguments

type
  • string to check

valid_types
  • vector of valid types

Details

If FALSE, a warning message is generated. It is the responsibility of the caller to determine what an appropriate response is.

Value

TRUE if the value of type is a valid type, FALSE otherwise.


wStockhausen/wtsUtilities documentation built on March 16, 2024, 10:38 a.m.