ts_add_data: Add Data

View source: R/data.R

ts_add_dataR Documentation

Add Data

Description

Times are rounded down prior to import.

Usage

ts_add_data(
  data,
  aggregate = NULL,
  na_rm = FALSE,
  resolution = "abort",
  conn = getOption("tsdbr.conn", NULL)
)

Arguments

data

A data frame of data with columns Station, DateTime, Recorded. Additional optional columns include Corrected, Status, Comments.

aggregate

A function to aggregate multiple values within the same station period.

na_rm

A flag indicating whether to remove missing values (if possible) when aggregating.

resolution

A string of the action to take with regard to existing values. Options are 'abort', 'ignore' or 'replace'.

conn

An object of class SQLiteConnection.

Value

A data frame of the imported parameters.


poissonconsulting/tsdbr documentation built on June 30, 2023, 3:02 a.m.