Description Usage Arguments Details Value Examples
View source: R/ingest_campbell.R
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.
1 2 3 4 5 6 | 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. |
The TIMESTAMP column will be returned as an POSIXct column.
A dataframe. If export.header = TRUE a temporary file is created for
the header data. See ingest_header
for more information.
1 2 3 4 5 | ## Not run:
campbell_file <- system.file("example_data", "campbell_scientific_tao5.dat", package = "ingestr")
cs_data <- ingest_campbell(input.source = campbell_file)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.