readit: Read Files of Any Type

Description Usage Arguments Details Examples

View source: R/readit.R

Description

NOTE: the readit package is retired, and this function throws deprecation warnings when called. Please use the rio::import() function instead.

Usage

1
readit(.data, ..., tidyverse = TRUE)

Arguments

.data

File path to read data from.

...

Additional arguments passed to tidyverse read functions, e.g. sheet, n_max, etc.

tidyverse

Should readit use functions available in the tidyverse, e.g. functions from readr, etc.? Defaults to TRUE.

Details

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.

Examples

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"))

ryapric/readit documentation built on Feb. 3, 2020, 11:29 p.m.