find_filename: find_filename finds a file in the Grattan data warehouse

View source: R/find_filename.R

find_filenameR Documentation

find_filename finds a file in the Grattan data warehouse

Description

'find_filename()' finds files that correspond to the provided input in the Grattan data warehouse.

Usage

find_filename(filename)

Arguments

filename

A filename or fragment, with or without filepath, such as "SIH15bh.dta", "SIH15bh", "ABS/SIH/2015-16/Stata/SIH15bh.dta", "SIH". If you specify a file extension, such as ".dta", ".csv", or ".sas7bdat", the extension must match exactly.

Details

Note that certain file extensions, including ".zip", ".txt" and ".fst" are excluded from find_filename's search. If you want to load a ".fst" file, use 'read_microdata(fast = TRUE)'

Value

The full local path to the file that matches 'filename' in the Grattan data warehouse. If more than one match is found, an error will be shown, including details of the multiple matches.


grattan/grattandata documentation built on June 15, 2024, 4:38 a.m.