Learn R Programming

truthiness (version 1.2.5)

locate_data_files: Locate Raw Data Files from Longitudinal Illusory Truth Study

Description

Look in a subdirectory and find files containing the raw data.

Usage

locate_data_files(path, full.names = TRUE)

Arguments

path

Path to data files.

full.names

If <U+2018>TRUE<U+2019>, the directory path is prepended to the file names to give a relative file path. If <U+2018>FALSE<U+2019>, the file names (rather than paths) are returned.

Value

A character vector with the paths to the files.

Details

Looks for files matching the regular expression ^[Pp][1-4]\.[Cc][Ss][Vv]$ and performs basic error-checking.