fetch_data: fetch_data Function

Description Usage Arguments See Also Examples

View source: R/pmlblite.R

Description

Download a data set from the PMLB repository, (optionally) store it locally, and return the data set. You must be connected to the internet if you are fetching a data set that is not cached locally.

Usage

1
fetch_data(dataset_name, return_X_y = FALSE, local_cache_dir = NA)

Arguments

dataset_name

The name of the data set to load from PMLB

return_X_y

Whether to return the data with the features and labels stored in separate data structures or a single structure (can be TRUE or FALSE, defaults to FALSE)

local_cache_dir

The directory on your local machine to store the data files in (defaults to NA, indicating cache will not be used)

See Also

classification_summary and regression_summary

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
 # Features and labels in single data frame
 iris <- fetch_data('iris')
 iris
 
 # Features and labels stored in separate data structures
 iris <- fetch_data('iris', return_X_y=TRUE)
 iris$x # data frame
 iris$y # vector

## End(Not run)

makeyourownmaker/pmlblite documentation built on Feb. 13, 2020, 11:46 p.m.