Skip to content

Instantly share code, notes, and snippets.

@houshuang
Created May 16, 2013 03:41
Show Gist options
  • Save houshuang/5589230 to your computer and use it in GitHub Desktop.
Save houshuang/5589230 to your computer and use it in GitHub Desktop.
> t<-table(prec$usercat,prec$relevant.to.aca.study.Why.enroll)
> f<-as.data.frame(unclass((prop.table(t,1))))
> sum(f$Agree)
[1] 1.744855
> sum(f$Disagree)
[1] 0.6086854
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment