A simple R wrapper to dig into new example datasets for data science and statistics. This wrapper set simplifies access to data by loading datasets directly into memory from an AWS repository or downloads a zip file to the working directory. This is a very early version of the wrapper.
Wrapper relies on the rio
, DT
, and rgdal
libraries.
Install devtools
, then run the following command:
library(devtools)
install_github("SigmaMonstR/digIt", force = TRUE)
library(digIt)
Returns list of available datasets
digList(detail = FALSE)
-
Args:
- detail = determines if description will be provided - renders in data tables format(default = FALSE)
-
Returns:
- List of example datasets
Retrieves example data, loads either to memory or downloads locally.
digIt("stopwords")
- Args:
- dataset = string value containing name of dataset
- download = downloads a .zip file of data and readme into working directory, otherwise, loads data into memory. (default = FALSE)
- readme = prints readme (default = FALSE)
- Returns:
- dataset as a local download (download = TRUE) or in R environment (download = FALSE)