extract_metadata: Extract metadata from a structured file path

Description Usage Arguments

Description

This might be more internal; we can wrap this with friendly functions rather than having users write a regex.

Usage

1
extract_metadata(paths, regex, cols, validate)

Arguments

paths

character vector of filenames.

regex

a rege that matches files.

cols

colunn names for groups captured in regex.

validate

a named list of functions (names indicate cols) that validate metadata (e.g. is an integer, is date, etc.).


vsbuffalo/pathfindr documentation built on May 3, 2019, 7:07 p.m.