archive_ts: Archive a timeseries file

View source: R/archive_ts.R

archive_tsR Documentation

Archive a timeseries file

Description

Archiving means renaming a file to an archive name that reflects the file creation date. The file remains attached to the same timeseries item on ScienceBase.

Usage

archive_ts(var_src, site_name, version = c("rds", "tsv"), ts_id, filename,
  verbose = TRUE)

Arguments

var_src

the var_src for which to archive a file

site_name

the site for which to archive a file

version

the data storage format of the file to be archived

ts_id

character. the ScienceBase ID[s] containing file[s] to archive

filename

character. the filename[s] to archive

verbose

logical. give status messages?

Details

For efficiency, e.g., when calling archive_ts() from another function that has already located the SB item, the ts_id and filename may be supplied with other arguments omitted. If ts_id and filename are omitted, the var_src, site, and version of the file to archive should be supplied instead, and this function will locate the corresponding file[s] on ScienceBase.


USGS-R/mda.streams documentation built on June 3, 2023, 8:43 a.m.