characterMatches: Check if character matches one of possible values

View source: R/asserts.R

characterMatchesR Documentation

Check if character matches one of possible values

Description

characterMatches checks if all elements of a character vector matches values in choices.

Usage

characterMatches(x, choice)

Arguments

x

Character vector to test.

choice

Character vector with possible values for x.

Value

Logical indicating if x's elements matches any of the values in choice.


Genentech/MiDAS documentation built on Feb. 5, 2024, 11:52 a.m.