getData {sampleVADIR}R Documentation

Data import function to accommodate multiple filetypes

Description

Allows for easy data importation. Automatically detects filetype and applies appropriate function for importing.

Usage

getData(filename, filetype = "csv", fixDates = FALSE, ...)

Arguments

filename

Character string specifying the path to desired datafile

filetype

Character string indicating filetype. Useful if no file extension is provided in filename. If file extension is provided in filename (recommended), then this argument is ignored. Accommodates "csv", "rds", "xlsx", "rdata", "sav", "txt"

fixDates

Logical. Determines whether to adjust date format.

...

Additional arguments

Value

Imported datafile


[Package sampleVADIR version 1.0.0 Index]