Loading Excel files

Loading an Excel file is a multi-step process:

  1. If the file is somewhere on the web, download the Excel file to your local computer.
  2. Upload the Excel file from your local computer to your RStudio workspace.
  3. Import the Excel file from the Rstudio workspace into your project workflow/document.

We will describe this “Import” step here.

library(readxl)
guns <- read_excel("~/Math217Labs/blank/guns.xlsx")
View(guns)
## Below lines showcase a graph, and are not part of "loading the data"
own_rate <- guns$own_rate
names(own_rate) <- guns$country
dotchart(sort(own_rate))