Skip to content

Instantly share code, notes, and snippets.

View DPonirakis's full-sized avatar
🎯
Focusing

Dimitri W Ponirakis DPonirakis

🎯
Focusing
  • Cornell University
View GitHub Profile
# Data latest polls
polls = NULL
polls <- data.frame( rbind(
Opinium = c(43, 47, 1156),
Survation = c(44, 48, 1000),
ICM = c(41, 45, 1175)
))
# set up for decimals
polls[, 1:2] <- polls[, 1:2]/100