Drop hier links of afbeeldingen om ze aan de editor toe te voegen.
This is the description of the exercise.
This is a link:
markdown cheatsheet
This is an image:

This is a code-block with syntax highlighting:
library(ISLR2)
data(Auto)
set.seed(1)
train <- sample(nrow(Auto), floor(nrow(Auto)*0.5))
Questions
- MC:
A) Bananas are yellow.
B) Tomatoes are blue.
- 1) Both statements are true.
- 2) Both statements are false.
- 3) A is true and B is false.
- 4) A is false and B is true.
- Create a linear regression model with
mpg as the dependent variable and displacement and horsepower as independent variables.
Train your model on the train set and store your model in model.
- Using the linear regression model, predict on the test set. Store your predictions in
preds.
- Store the length of the Auto data set in
len using the length() function.
Assume that:
- The ISLR2 library has been loaded
- The Auto data set has been loaded