12.1 Introduction

This exercise reviews the basics of loading data from a package into R. These basic skills are needed for the further tasks of plotting that will be built upon in this section. If you are familiar with R you can probably skim this or skip it altogether. If you are brand new then this is an excellent review of the material covered so far in this book.

12.1.1 Learning Goals & Outcomes

To review the basics of loading packages and data.

12.1.2 Functions & Arguements

  • data
  • library
  • ls
  • dim
  • names
  • head
  • tail
  • is
  • summary
  • install.packages

12.1.3 Packages

  • MASS
  • cowplot

12.1.4 Outline

  • Intro
  • Fisher’s Iris data
  • Loading data: iris
  • The easy way: from base R w/ data(iris)
  • Loading packages in base R: MASS
  • command: library(MASS)
  • Loading packages from CRAN: cowplot