Learn R Programming

photobiologyInOut (version 0.4.11)

read_csi_dat: Read '.DAT' file(s) saved by modern Campbell Scientific loggers.

Description

Reads and parses the header of a processed data file as output by the PC400 or PC200W programmes extracting variable names, units and quantities from the header. Uses the comment attribute to store the metadata.

Usage

read_csi_dat(file, geocode = NULL, label = NULL, data_skip = 0, n_max = Inf, locale = readr::default_locale())

Arguments

file
Path to file as a character string.
geocode
A data frame with columns lon and lat.
label
character string, but if NULL the value of file is used, and if NA the "what.measured" attribute is not set.
data_skip
integer Number of records (rows) to skip from the actual data block.
n_max
integer Maximum number of records to read.
locale
The locale controls defaults that vary from place to place. The default locale is US-centric (like R), but you can use locale to create your own locale that controls things like the default time zone, encoding, decimal mark, big mark, and day/month names.

Value

read_csi_dat() returns a tibble::tibble object.

References

http://www.r4photobiology.info http://www.campbellsci.eu/