extract_metadata: Extract metadata from the header of a datafile

Description Usage Arguments

Description

Extract metadata from the header of a datafile

Usage

1
2
extract_metadata(header, start, pattern = "[-+]?\\d+\\.?\\d*e?-?\\d*",
  numeric = TRUE)

Arguments

header

A vector of header lines in a datafile

start

A string with the beginning of the line of interest

pattern

Regular expression detailing how to extract the value. The default will attempt to match any number.

numeric

Should the function return a numeric (TRUE) or character (FALSE)


SPOMAN/osc documentation built on May 14, 2019, 7:41 a.m.