stringMatches: Check if string matches one of possible values

View source: R/asserts.R

stringMatchesR Documentation

Check if string matches one of possible values

Description

stringMatches checks if string is equal to one of the choices.

Usage

stringMatches(x, choice)

Arguments

x

string to test.

choice

Character vector with possible values for x.

Value

Logical indicating if x matches one of the strings in choice.


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