check_pattern: Check input against acceptable input pattern

Description Usage Arguments Value Examples

Description

Checks an input_value against a regex pattern to determine if the input_value is valid. This method is used internally and not for intended for general use.

Usage

1
2
3
4
check_pattern(I, input_value, match)

## S4 method for signature 'mw_input_item'
check_pattern(I, input_value, match)

Arguments

I

An mw_input_item.

input_value

The value for the input item (character).

match

The type of match. One of "exact" or "partial".

Value

TRUE if input matches the pattern, or throws an error.

Examples

1
check_pattern(input_item$study_id,'ST000001','exact')

metabolomicsWorkbenchR documentation built on Nov. 8, 2020, 6:58 p.m.