mtcars_data: Generating example data with mtcars.

Description Usage Arguments Value

View source: R/example_data.R

Description

Generates test data using base R's mtcars dataset. The response variable y is horsepower (hp), while the remaining variables represent the predictive features X.

Usage

1
mtcars_data(seed = 99)

Arguments

seed

random seed to use. Defaults to 99.

Value

X_train, y_train, X_val, y_val (as a list of dataframes)


UBC-MDS/punisheR documentation built on May 25, 2019, 1:36 p.m.