[R] comparison of these types is not implemented
Jim Holtman
jholtman at gmail.com
Tue Dec 15 14:28:29 CET 2009
you need:
r_squared[[i]]
What is the problem you are trying to solve?
Sent from my iPhone.
On Dec 15, 2009, at 2:29, Tom Pitt <t.pitt at hotmail.com> wrote:
>
> 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.
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help
mailing list