Find range of lines in file containing spectral data.
Source:R/parse-oo-header.R
oofile_data_rows.Rd
Ocean Optics files can have varying numbers of rows containing spectral data, but these rows are fenced between two lines containing recognizable character strings. This function, detects these strings.
Value
integer vector of length two, containing the indexes to the first last rows containing spectral data.
Note
This is a rather slow operation, so if all files to be read have the same format, it is inefficient to call this function for each file.
See also
Other functions for importing spectral data from files:
collect_spct_files()
,
map_oofile_header_rows()
,
plot_spct_file()
,
read_files2mspct()
,
read_oo_data()
,
read_oo_ovdata()
,
read_oo_pidata()
,
read_oo_ssdata()
,
set_oo_ssdata_descriptor()
,
set_oo_ssdata_settings()