Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

buildDelimRegex

Build Regex to find delimited items.


Description

A delimited item maple can appear in a list in four ways

  1. At the start of a list maple; oak

  2. In the middle of a list oak; maple; birch

  3. At the end of a list oak; maple

  4. Alone with no delimiters maple

Usage

buildDelimRegex(str, delim)

Arguments

str

A string whose presence indicates a selection

delim

The delimiter separating the responses

Details

This function builds a regex expression which captures those four cases It is mostly broken out of createSubvarDeriv() for testing purposes.

Value

A character string


crunch

Crunch.io Data Tools

v1.28.0
LGPL (>= 3)
Authors
Greg Freedman Ellis [aut, cre], Jonathan Keane [aut], Mike Malecki [aut], Neal Richardson [aut], Gordon Shotwell [aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.