ingest_campbell
ingests data from Campbell Scientific dataloggers that
are stored in the TAO5 file format with a .dat extension All
ingest functions use the source file's base name as an identifying column to track
provenance and relate data and metadata read from files.
ingest_campbell( input.source, export.header = TRUE, add.units = TRUE, add.measurements = TRUE )
input.source | Character indicating the .dat Campbell Scientific File. |
---|---|
export.header | A logical indicating if header information is written to a temporary file that can be restored using ingest_header(input.source). |
add.units | Logical indicating if add.units specified in the data file should be appended to the end of the variable names specified in the data file, defaults to TRUE. |
add.measurements | Logical indicating if add.measurements type (Avg, Smp, etc) specified in the data file should be appended to the start of the variable names specified in the data file, defaults to TRUE. |
A dataframe. If export.header = TRUE a temporary file is created for
the header data. See ingest_header
for more information.
The TIMESTAMP column will be returned as an POSIXct column.
if (FALSE) { campbell_file <- system.file("example_data", "campbell_scientific_tao5.dat", package = "ingestr") cs_data <- ingest_campbell(input.source = campbell_file) }