sundance: Summarize temperature data

View source: R/sundance.R

sundanceR Documentation

Summarize temperature data

Description

This function summarizes temperature and relative humidity data from Onset data loggers.

Usage

sundance(my_data)

Arguments

my_data

A data frame with from import_hobo_2008 or import_hobo. If not from these functions, the columns must include the following:

Element

The element the data represent. TEMP is temperature or RH is relative humidity.

PlotID

The unique plot identification number (e.g., A03 or I06).

DateTime

The date-time of the measurement.

Value

The data value of the measurement recorded by the data logger.

Units

The unit of the measurement.

Details

This function summarizes temperature and relative humidity data from Onset loggers. It uses the data_raw data frame produced from import_hobo_2008 ro import_hobo and returns a data frame of summarized temperature or relative humidity data.

Value

This function returns a tibble.

PlotID

The unique ID number for the long-term monitoring plot.

Date

The date the data were recorded.

TEMP_mean

The mean daily temperature.

TMIN

The minimum daily temperature.

TMAX

The maximum daily temperature.

n

The number of records for that day.

TMIN_time

The time of minimum daily temperature.

TMAX_time

The time of maximum daily temperature.

Units

The unit of the measurement.

See Also

import_hobo_2008, 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)

# Temperature data
my_temp <- import_hobo_2008(file_list[4])$data_raw
sundance(my_temp)

# Relative humidity data
my_rh <- import_hobo(file_list[8])$data_raw
sundance(my_rh)

## End(Not run)

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