View source: R/import_hobo_2008.R
import_hobo_2008 | R Documentation |
This function imports a comma delimited (*.csv) file produced by Onset HOBOware from Onset data loggers used in NPS Southeast Utah Group parks from 2008 to 2019. It uses the file name or full path name to produce a list with four components that contain the file information needed to import the csv, metadata about the logger and sampling time, and the raw data.
import_hobo_2008(my_file)
my_file |
A character string of the file name. This should include the directory path. |
This function imports the data from a csv file into R and returns a list containing the data used to import the file, the metadata, and the raw data.
This function returns a list with three (3) components.
This component is a vector that contains the file name, the date stamp, plot ID, the number of lines to skip to properly import the data, the number of columns of data in the raw file, and the elements measured.
This component is a data frame of logger metadata.
This component is a data frame of raw data in long format.
import_hobo
## Not run: library("raindancer") # Generate list of files file_list <- list.files(path = system.file("extdata", package = "raindancer"), pattern = ".csv", full.names = TRUE, recursive = FALSE) # Import data import_hobo_2008(file_list[1]) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.