clean.file.path: Clean a file path.

Description Usage Arguments Value Examples

View source: R/files.R

Description

Convert an EVT/OPP/VCT file path to a form suitable for storage in the SQLite db. Any ".gz", ".opp", ".vct" extensions will be removed.

Usage

1

Arguments

fpath

File path to clean.

Value

Modified file path as julian_day/EVT_file_name.

Examples

1
2
3
4
## Not run: 
fpath <- clean.file.path("foo/2014_185/2014-07-04T00-00-02+00-00.opp.gz")

## End(Not run)

armbrustlab/popcycle documentation built on Aug. 8, 2020, 1:08 a.m.