{election_info<-read.csv("C:/Users/USER/Documents/R-Studio Assignment/election_info.csv")
election_info}
## X candidate elct_coll_votes govt_experience sex hair_color
## 1 1 Trump 306 FALSE Male orange
## 2 2 Clinton 232 TRUE Female blonde
## 3 3 Johnson 0 TRUE Male gray
## 4 4 Stein 0 FALSE Female gray
A vector for whether I like or I do not like the candidate.
like<-c("Yes","Yes","No","No")
like
## [1] "Yes" "Yes" "No" "No"
Adding the new vector to the election data, we have;
election_info$like<-like
election_info
## X candidate elct_coll_votes govt_experience sex hair_color like
## 1 1 Trump 306 FALSE Male orange Yes
## 2 2 Clinton 232 TRUE Female blonde Yes
## 3 3 Johnson 0 TRUE Male gray No
## 4 4 Stein 0 FALSE Female gray No