match_exactly

0th

Percentile

Do these character vectors match exactly?

Checks if a user-defined character vector matches an expected character vector. That is, they share the same lengths and entries in the same order. For vectors of the same lengths, the result is all(a == b).

Keywords
internal
Usage
match_exactly(
  user,
  expected,
  fail_action = c("message", "warning", "stop", "nothing")
)
Arguments
user

Character vector of user input.

expected

Character vector of expected/allowed values.

fail_action

If any value in user could not be matched, or repeated matches occured, what should happen? Possible values are "message" (default), "warning", "stop", and "nothing".

Details

Attributes are ignored.

Value

Logical. Do user and expected match?

Aliases
  • match_exactly
Documentation reproduced from package ciftiTools, version 0.1.6.0, License: GPL-3

Community examples

Looks like there are no examples yet.