read_spectro: Read Spectrophotomter File

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Reads an XML file produced by the XX brand spectrophotometer at the Portobello Marine Laboratory

Usage

1
read_spectro(file, read_tag = "Readings", meas_tag = "Measurement")

Arguments

file

A string representing the (XML) file to read

read_tag

A string representing the tag for the "Readings" node in the XML file

meas_tag

A string representing the tag for the "Measurement" node in the XML file.

Details

This function reads an XML file produced by the XX brand spectrophotometer at the Portobello Marine Laboratory. Most often applied when calculating pigment concentrations.

Value

A dataframe with columns

Author(s)

Daniel Pritchard

See Also

beer_eshel_1985, ritchie_2008

Examples

1
2
3
4
5
6
## An example of these functions in use:
# Using the sample file that Hang provided
fpath <- system.file("extdata", "test_spectro.xml", package="seaweedR")
dat <- read_spectro(file = fpath)
head(dat)
str(dat)

dpritchard/seaweedR documentation built on May 15, 2019, 1:50 p.m.