powered by
Finds either a unique match in the list of files or throws an error with possible candidate files.
ghfile(x, n = 6, silent = FALSE, msg = "%s")
the full matching file
character: a single file name
logical: if x can not be found how many best matches should be returned (default: 6)
x
6
logical: if no (unique) match is found, then NULL is returned, otherwise an error is thrown (default: FALSE, throw error)
NULL
FALSE
character: error message how to put the file name(s (default: %s)
%s
ghfile("data/BANK2.sav") if (interactive()) ghfile("data/BANK2.SAV") # throws an error
Run the code above in your browser using DataLab