
i
i
“K23166” — 2015/1/28 — 9:35 — page 226 — #252
i
i
i
i
i
i
226 APPENDIX A. INTRODUCTION TO R AND RSTUDIO
an example, to access the mean() function from the base package, the user would specify
base::mean() instead of mean().
The names of all variables within a given dataset (or more generally for sub-objects
within an object) are provided by the names() command. The names of all objects defined
within an R session can be generated using the objects() and ls() commands, which
return a vector of character strings. RStudio includes an Environment tab that lists all the
objects in the current environment.
The print() and summary() functions can be used to display ...