pull_file_names: Get a vector of source file names

Description Usage Arguments Value Examples

View source: R/quantile_estimation_functions_master.R

Description

This function returns a vector of string file names, given a source directory and a pattern

Usage

1
pull_file_names(srcdir, pattern_to_search = NULL, file_num)

Arguments

srcdir

path to where the source parquet files are located

pattern_to_search

character string that will serve as the pattern (i.e. "high") to get a specific subset of files

file_num

integer value. If this value is less than the number of files, a random draw of size file_num will be drawn from the pool of possible source files (small numbers aid in testing, prior to aggregating entire set of 1000 files)

Value

vector of source file names

Examples

1
2
pull_file_names("modeloutput/scenario_X/", "med", 50)
pull_file_names("modeloutput/scenario_Y/", "high", 1000)

lmullany/iddquantiles documentation built on June 21, 2020, 7:28 p.m.