Description Usage Arguments Value Author(s) Examples
A simple wrapper for reading data which currently supports Rdata, sav, txt,
csv, csv2 and xlsx. Under the hood, it uses readxl
, readr
and
haven
.
1 |
file |
Path to a Rdata, sav (SPSS), txt, csv, csv2 or xlsx file. |
... |
Additional arguments passed to |
encoding |
The encoding to use for txt and csv-files. |
decimal |
The decimal marker in the file. Typically "," in scandinavia, and "." in the U.S. |
A data.frame. If more than one sheet is read from a xlsx file (or you are reading a Rdata file) a list is returned instead.
Kristian D. Olsen
1 | x <- read_data("test.xlsx")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.