summarize_ts: Summarize a timeseries

summarize_tsR Documentation

Summarize a timeseries

Description

Summarize a timeseries

Usage

summarize_ts(var_src, site_name, version = c("rds", "tsv"), out =
  c("date_updated", "start_date", "end_date", "num_dates", "num_rows",
  "num_complete", "modal_timestep", "num_modal_timesteps"), on_local_exists =
  c("skip", "stop", "replace"))

Arguments

var_src

character vector of dataset types to summarize, or named list of ts data.frames() with only the columns DateTime and the variable (where list element names are var_srces).

site_name

character vector of the same length as var_src specifying the site or sites (e.g., "nwis_24309857") where each timeseries dataset should be sought.

version

character string indicating whether you want to download the ts as a .tsv or .rds

out

a list of one or more outputs to include in the summary dataframe, in addition to the var_src and site_name and id columns.

on_local_exists

character indicating what to do if the folder already contains a file with the intended download name

Examples

## Not run: 
summarize_ts(rep(c("doobs_nwis", "wtr_nwis"), each=4), 
  rep(c("nwis_01021050","nwis_01036390","nwis_01073389","nwis_notasite"), times=2))

## End(Not run)

USGS-R/powstreams documentation built on June 3, 2023, 8:58 a.m.