Open dibyanta opened 6 years ago
@dibyanta you probably have another package loaded that has its own cars
dataset. I believe the dataset this is intending you to have is the one from the datasets
package, which you can forcibly access using
> head(datasets::cars)
speed dist
1 4 2
2 4 10
3 7 4
4 7 22
5 8 16
6 9 10
I seem to have a different 'cars' dataset loaded than what the question intended, as the variables speed and dist do not seem to exist in the loaded dataset:
| Type with(cars, plot(speed, dist)) at the command prompt.