parse_pattern: Parse column pattern.

Description Usage Arguments Value

View source: R/dev/test_parse_pattern.R View source: R/wide2long.R

Description

The parser uses a slighttly modified version of 'stringr' library. The modification lets you name the groups. A group is a regular expression in brackets, like '(...)'. You can name the group by supplying it between two columns, for instance (:condition:...) will match a group of 3 symbols (the three dots), and call that group 'condition'.

Usage

1

Arguments

s

Teh pattern to match

Value

a list with the pattern without group names, and the found names.


MatteoLacki/LFQBench2 documentation built on April 4, 2020, 7:10 a.m.