Data Science Desktop Survival Guide
by Graham Williams |
|||||
Simplifying Commands |
# Review the dataset.
glimpse(x=weatherAUS)
We can actually simplify this a little more. Often for a command we don't have to explicitly name all of the arguments. In the following example we drop the package= and the x= arguments as the commands themselves know what to expect implicitly. |
# Load packages from the local library into the R session.
library(dplyr) library(rattle) # Review the dataset. glimpse(weatherAUS)
A number of packages are automatically attached when R starts. The first base::search() command above returned a vector of packages and since we had yet to attach any further packages those listed are the ones automatically attached. One of those is the base package which provides the base::library() command. |