Skip to content

Instantly share code, notes, and snippets.

@lordsutch
lordsutch / checkbox-dummies.R
Last active August 29, 2015 14:07
Turn a comma-separated list of values (like from a Google Forms spreadsheet with a checkbox form) into logical variables
library(stringr)
mga.students <- read.csv('MGA POLS 1101 Student Profile Survey (Responses) - Form Responses 1.csv')
## Checkbox items
varlist <- c('Based.on.what.you.know.off.the.top.of.your.head..without.looking.it.up...which.of.the.following.statements.about.Middle.Georgia.State.College.do.you.believe.to.be.true..You.can.mark.more.than.one.response.',
'Which.of.the.following.statements.reflect.s..why.you.are.planning.to.transfer...You.may.select.more.than.one.answer..',
'Which.of.the.following..if.any..would.make.you.more.excited.about.pursuing.your.education.at.Middle.Georgia.State.'
)

Keybase proof

I hereby claim:

  • I am lordsutch on github.
  • I am lordsutch (https://keybase.io/lordsutch) on keybase.
  • I have a public key whose fingerprint is 6958 A410 0D18 3097 8B3D ACB6 C9FC 41B8 F98C 66CF

To claim this, I am signing this object: