This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Activate appropriate packages. | |
library(readr) | |
library(tidyr) | |
library(dplyr) | |
library(ggplot2) | |
library(RColorBrewer) | |
library(maptools) | |
library(gtools) | |
library(ggmap) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#LAb 1, Ji Soo Song | |
#Enable the dplyr package. | |
library(dplyr) | |
#Define a vector with 10 authors' last names. | |
authorLastName<-c('Kim','Andrews','McDonald','Johnson','Bryant','Stein','Rodriguez','Li','Ali','Watson') | |
#Define a vector with one book written by each author. | |
title<-c('Lost Men','Of Cites and States','Gone','International Comparisons','Why?','Dunkirk','Soar','Wings of Liberty','Abacus','Lilac') | |
#Define a vector with the publication years of the above books. |