make_ts_path: Create a standardized file name for specific file contents

make_ts_pathR Documentation

Create a standardized file name for specific file contents

Description

Create a standardized file name for specific file contents

Usage

make_ts_path(site_name, ts_name, folder, version = c("rds", "tsv"),
  creation_date = NA)

Arguments

site_name

the full site name, e.g., 'nwis_06893820'

ts_name

the full ts name, e.g., 'ts_doobs_nwis'

folder

the folder to write the file in, or missing

version

character string indicating the file format

creation_date

NA for a standard ts_path, or a POSIXct date of file creation if the path should describe an archived ts

Value

a full file path

Examples

make_ts_path(c('nwis_08062500','nwis_83105638'), 'ts_doobs_nwis')
make_ts_path('nwis_08062500', 'ts_doobs_nwis', version='tsv')
make_ts_path('nwis_08062500', 'ts_doobs_nwis', creation_date=Sys.time())
make_ts_path('nwis_08062500', 'ts_doobs_nwis', folder='temp/1', creation_date=Sys.time())

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