[R] arguments must have same length
suntime
yang2281 at umn.edu
Fri May 11 10:56:40 CEST 2012
> score<-read.csv("http://users.stat.umn.edu/~chen2285/hw/ACT.csv")
> interaction.plot(sex,rep(1,861),score,fun=mean,legend=F,main="profile of
> sex")
Error: tapply(response, list(x.factor, trace.factor), fun) :
arguments must have same length
> length(sex)
[1] 861
> length(type)
[1] 861
> length(score)
[1] 3
How can I alter the length of the variable score here to make this function
work?
or any other way to perform interaction plot?
--
View this message in context: http://r.789695.n4.nabble.com/arguments-must-have-same-length-tp4625885.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list