View source: R/elr_read_data.R
elrReadData | R Documentation |
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"
)
file |
Name of the file to read. |
name |
Pure file name (without path to file) to read.
If |
header |
See |
sep |
See |
dec |
See |
use.value.labels |
See |
na.strings |
See |
Object of class "data.frame"
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.