make_ts_archive_path: Create an archive file name for a file on ScienceBase

Description Usage Arguments Value Examples

View source: R/mda_helpers.R

Description

Usually subsidiary to make_ts_path, but may also be called directly if you already have a non-archive file_path to modify

Usage

1
make_ts_archive_path(file_path, creation_date)

Arguments

file_path

of the file that is to be archived

creation_date

the creation date of the ScienceBase file that will be archived (as.POSIXct). can't be NA.

Value

a file name to be used as an archive

Examples

1
2
make_ts_archive_path('nwis_05406480-ts_doobs_nwis.tsv.gz', Sys.time())
make_ts_archive_path('temp/nwis_05406480-ts_doobs_nwis.tsv.gz', Sys.time())

USGS-R/mda.streams documentation built on Dec. 19, 2017, 10:25 p.m.