Description Usage Arguments Details Examples
NOTE: the readit
package is retired, and this function throws deprecation
warnings when called. Please use the
rio::import() function instead.
1 |
.data |
File path to read data from. |
... |
Additional arguments passed to tidyverse read functions, e.g.
|
tidyverse |
Should |
Given a file path, read the data into R, regardless of file type/extension.
readit
is a thick wrapper around many of the
tidyverse libraries, but can be forced to use
base functions where possible. Note that the caveat is that the file
needs to have an extension, as well as be of a relatively common type.
"Common types" are any file type that can be handled by the
readr,
readxl, or
haven packages.
1 2 3 4 5 6 | readit(system.file("examples", "csv.csv", package = "readit"))
readit(system.file("examples", "tab_sep.txt", package = "readit"))
readit(system.file("examples", "semi_sep.txt", package = "readit"))
readit(system.file("examples", "xlsx.xlsx", package = "readit"))
readit(system.file("examples", "xls.xls", package = "readit"))
readit(system.file("examples", "iris.sas7bdat", package = "readit"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.