Tries to determine the format of the data by the file ending and
chooses the appropriate function to read data. Currently supports .csv,
.dat, .txt, .sav, and .xpt and calls read.csv
, read.csv2
,
read.table
, read.spss
,
read.xport
accordingly. The default values for
arguments depend on the function used to read data.
elrReadData(
file,
name = NULL,
header = "default",
sep = "default",
dec = "default",
use.value.labels = "default",
na.strings = "NA"
)
Object of class "data.frame"
.
Name of the file to read.
Pure file name (without path to file) to read.
If file
includes a lengthy path name with many special characters,
specifying this argument in addition to file
may help the function
to find the file ending.
See read.table
.
See read.table
.
See read.table
.
See read.spss
.
See read.spss
.