View source: R/read-psi-spectrapen-csv.r
read_spectrapen_csv | R Documentation |
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.
read_spectrapen_csv(
file,
start.row = 1,
date = NULL,
geocode = NULL,
label = NULL,
tz = NULL,
locale = readr::default_locale()
)
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
|
A source_mspct
object.
# 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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.