[R] comparison of these types is not implemented

Tom Pitt t.pitt at hotmail.com
Tue Dec 15 11:29:58 CET 2009


Hi All,

Can you tell me why I get the error message below?  It's driving me nuts.

Thanks, 
Tom

> r_squared
[[1]]
[1] 0.9083936

[[2]]
[1] 0.8871647

[[3]]
[1] 0.8193883

[[4]]
[1] 0.728157

[[5]]
[1] 0.8849525

[[6]]
[1] 0.8459416

[[7]]
[1] 0.6702318

[[8]]
[1] 0.02997816

[[9]]
[1] 0.8974268

[[10]]
[1] 0.881217

[[11]]
[1] 0.8006688

[[12]]
[1] 0.7207697

[[13]]
[1] 0.8703734

[[14]]
[1] 0.8384346

[[15]]
[1] 0.6237472

> 
> biggest=c(0,0)
> 
> for (i in 1:15) {
+ 
+ if (r_squared[i]>biggest[1]) biggest=c(r_squared[i],i)}
Error in r_squared[i] > biggest[1] : 
  comparison of these types is not implemented



-- 
View this message in context: http://n4.nabble.com/comparison-of-these-types-is-not-implemented-tp964195p964195.html
Sent from the R help mailing list archive at Nabble.com.




More information about the R-help mailing list