Description Usage Arguments See Also Examples
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.
1  | fetch_data(dataset_name, return_X_y = FALSE, local_cache_dir = NA)
 | 
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)  | 
classification_summary and regression_summary
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)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.