as_ind_file: Returns the indicator name corresponding to the given data...

Description Usage Arguments Examples

View source: R/scmake.R

Description

If data_file already has the indicator extension, an error will be generated.

Usage

1
as_ind_file(data_file, ind_ext = getOption("scipiper.ind_ext"))

Arguments

data_file

the data file name (with path as needed) whose corresponding indicator name should be returned

ind_ext

the indicator file extension to apply

Examples

1
2
3
as_ind_file('mydata.rds') # 'mydata.rds.ind'
as_ind_file('mydata.rds', ind_ext='st') # 'mydata.rds.st'
as_ind_file('mydata.rds.ind') # Error: "data_file is an indicator file already"

USGS-R/scipiper documentation built on Aug. 14, 2018, 5:23 a.m.