extractValue: Extract A Set Of Values From The Dictionary

Description Usage Arguments Value Examples

Description

A function to extract values from the unique dictionary syntax, which goes key ::= val1 | val2 | etc..., and put it in its proper format, which is individual members of a vector. See the complementary functions extractKey and the opposite function buildEntry for other options.

Usage

1
extractValue(inString, format = TRUE)

Arguments

inString

A string to be formatted.

format

If set to TRUE (default), then the string is split into individual members by | before being returned.

Value

This function returns the modified string.

Examples

1
extractValue("rawr ::= a | b | c", format=TRUE)

ecology-rocks/grammaR documentation built on May 15, 2019, 7:58 p.m.