Displaying 1 result from an estimated 1 matches for "a1_5".
Did you mean:
a15
2013 Aug 22
1
converting a summary table to survey database form
...an aov(score~brand,data=condom.dataframe) for instance.
However to get my original condomData which has the tabulated scores per brand into the summarised form is a pain.
I tried to just get a vector that essentially has all the rows of condomData put into one long vector from i.e. c( a1_1,a1_2...a1_5,a2_1,2_..a2_5.......a10_5)
I would then bind this together with a names vector of rep(c('Ramses','Sheiks','Trojans','Unamed),10) and I would have my desired datafram for anova.
But alas my attempt below does not work:
r<-dim(condomData)[1]
scoreS<-c()
for (i in 1:r...