read_spectrapen_csv {photobiologyInOut} | R Documentation |
Read '.CSV' File Saved by PSI's Software.
Description
Reads and parses the header of a processed .CSV file as output by the by the PSI (Photon Systems Instruments, Czech Republic) SpectraPen miniature spectrometer.
Usage
read_spectrapen_csv(
file,
start.row = 1,
date = NULL,
geocode = NULL,
label = NULL,
tz = NULL,
locale = readr::default_locale()
)
Arguments
file |
character string. |
start.row |
integer The first line to read, counting from the top of the file. |
date |
a |
geocode |
A data frame with columns |
label |
character string, but if |
tz |
character Time zone used for interpreting times saved in the file header. |
locale |
The locale controls defaults that vary from place to place. The
default locale is US-centric (like R), but you can use
|
Value
A source_mspct
object.
References
Examples
# fetch path to example file to read
file.name <-
system.file("extdata", "spectrum-psi-spectrapen-SP.csv",
package = "photobiologyInOut", mustWork = TRUE)
spectrapen.mspct <- read_spectrapen_csv(file = file.name)
spectrapen.mspct
getWhenMeasured(spectrapen.mspct)
getWhatMeasured(spectrapen.mspct)
cat(comment(spectrapen.mspct))