lr_parse_generic: Generic function to parse spectra files that don't have a...

Description Usage Arguments Value Examples

View source: R/parse_generic.R

Description

Generic function to parse spectra files that don't have a specific parser

Usage

1
lr_parse_generic(filename, decimal = ".", sep = NULL)

Arguments

filename

Path of the file to parse

decimal

Character to be used to identify decimal plates (defaults to .).

sep

Column delimiting characters to be considered in addition to the default (which are: tab, space, and ";")

Value

A list of two elements:

Examples

1
2
3
4
lr_parse_generic(system.file("testdata", "spec.csv", package = "lightr"),
                 sep = ",")
lr_parse_generic(system.file("testdata", "CRAIC_export.txt",
                             package = "lightr"))

Bisaloo/lightr documentation built on Jan. 21, 2020, 4:10 p.m.