import_hobo_2008: Process a *.csv file produced by Onset HOBOware (2008-2019)

View source: R/import_hobo_2008.R

import_hobo_2008R Documentation

Process a *.csv file produced by Onset HOBOware (2008-2019)

Description

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.

Usage

import_hobo_2008(my_file)

Arguments

my_file

A character string of the file name. This should include the directory path.

Details

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.

Value

This function returns a list with three (3) components.

file_info

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.

details

This component is a data frame of logger metadata.

data_raw

This component is a data frame of raw data in long format.

See Also

import_hobo

Examples

## 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)


scoyoc/rainDanceR documentation built on Jan. 10, 2023, 3:29 p.m.