getData: Data import function to accommodate multiple filetypes

Description Usage Arguments Value

View source: R/getData.R

Description

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

Usage

1
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


sampleVADIR documentation built on Oct. 27, 2021, 5:08 p.m.