check_pattern {metabolomicsWorkbenchR} | R Documentation

## Check input against acceptable input pattern

### 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

    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

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

[Package metabolomicsWorkbenchR version 1.4.0 Index]