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

View source: R/scmake.R

as_ind_fileR Documentation

Returns the indicator name corresponding to the given data file name

Description

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

Usage

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

as_ind_file('mydata.rds') # 'mydata.rds.ind'
as_ind_file('mydata.rds', ind_ext='st') # 'mydata.rds.st'
## Not run: 
as_ind_file('mydata.rds.ind') # Error: "data_file contains indicator files: mydata.rds.ind"

## End(Not run)

USGS-R/scipiper documentation built on May 25, 2023, 8:47 a.m.