swirldev / swirl_courses

:mortar_board: A collection of interactive courses for the swirl R package.
http://swirlstats.com
Other
4.25k stars 7.25k forks source link

Exploratory Data Analysis: Use of with() should be accepted #497

Open erntan opened 2 years ago

erntan commented 2 years ago

After learning how to use with to minimize typing, answers using with should be accepted. An example of this is in lesson 5 (Base Plotting):

| Plot airquality$Ozone and airquality$Solar.R and use main to specify the
| title "Ozone and Solar Radiation".

> with(airquality, plot(Ozone, Solar.R, main = "Ozone and Solar Radiation"))

| That's not the answer I was looking for, but try again. Or, type info()
| for more options.

| Type plot(airquality$Ozone, airquality$Solar.R, main = "Ozone and Solar
| Radiation").

> plot(airquality$Ozone, airquality$Solar.R, main = "Ozone and Solar Radiation")

| Great job