1. Install and invoke the readxl package. RStudio –> Tools –> Install Packages
install.packages("readxl")
  1. Download an Excel version of the Monuments dataset: http://johnmuschelli.com/intro_to_r/data/Monuments.xlsx
destfile = file.path(tempdir(), "Monuments.xlsx")
download.file("http://johnmuschelli.com/intro_to_r/data/Monuments.xlsx", 
              destfile = destfile)
  1. Use the read_excel() function in the readxl package to read in the dataset
library(readxl)
mon = read_excel(destfile)
  1. Write out the R object as a CSV file
write.csv(mon, "Monuments.csv",row.names=FALSE)