Skip to contents

Locate in which lines of the file header different metadata features are located. Parsing is needed because the format used varies with among Ocean Optics programs and instruments. Even the number of lines in the header, and the position of the first line with spectral data vary.

Usage

map_oofile_header_rows(lines, header.end = NULL, grammar = oo.minimum.gr)

Arguments

lines

character The data file read line by line.

header.end

integer The index to the last line of the longest header expected.

grammar

data.frame With character variables "feature" and "pattern" that will be used to locate the lines containing each type of metadata.

Value

A data frame with two variables, "feature" of class character, and "line.idx" of class integer.