parse.fname: Parses a file name and returns the values for the requested...

Description Usage Arguments Value Examples

Description

This function parses a file name and matches the name to the given pattern. Then it extracts the values for the requested files.

Usage

1
parse.fname(fname, pattern, fields)

Arguments

fname

file name.

pattern

Regular expression used to extract the fields values.

fields

Fields that uniquely identify the data from a file.

Value

A list containing the field names and their values.

Examples

1
2
3
4
5
6
## Not run: 
parse.fname('results-1-simple.csv',
            'results-(\\d+)-(\\w+)\\.csv',
            c('ID', 'config'))

## End(Not run)

betabandido/exptools documentation built on May 12, 2019, 7:25 p.m.