Skip to contents

Return names (including path) of TraCE21ka data files

Usage

traceFileNames(indir, files_n = 36, vars = NULL)

Arguments

indir

Character string with the relative path to the TraCE21ka data folder

files_n

Integer indicating the number of the desired file. Default to 36, which is the file with the data incorporating the most recent (historical) period.

vars

String vector with the name of the vars to include in the output. Default is null, which return tas, tasmin, tasmax, pr, ps, hurs, cld, u, and v.

Value

This function return a string vector with the filenames for all variables of the desired file number in TraCE21ka dataset.

Examples

if (FALSE) { # \dontrun{
historical.files <- traceFileNames("Data/TraCE21ka/", 36)
LGM.files <- traceFileNames("Data/TraCE21ka/", 1)
} # }