[R] lda in R vs S

Marc R. Feldesman feldesmanm at pdx.edu
Fri May 7 01:25:06 CEST 1999


At 01:08 AM 5/7/1999 +0200, Peter Dalgaard BSA wrote:
>Prof Brian Ripley <ripley at stats.ox.ac.uk> writes:
>
>> 
>> > 
>> > >
>> > >    /* Sanity checks to ensure that the the answer can become */
>> > >    /* a data frame.  Be deeply suspicious here! */
>> > >
>> > 
>> > Deeply suspicious of what?
>> 
>> Of things that look like factors? (I don't know, I didn't write this.)
>> 
>
>I believe that is a very old comment (probably by Ross)... I think
>that the point is that there are cases that are easily overlooked,
>such as the fact that a "column" of a data frame can actually be a
>matrix. 
>
>The important thing that gets ruled out is string vectors (whether
>or not that is a good idea...), which is probably exactly what Marc F.
>has where he thinks he has a factor.

No actually I *had* a factor.

is.factor(sarich.na[,3])
[1] TRUE
> 

This is why I was perplexed by the behavior after Brian suggested the
various alternatives.




Dr. Marc R. Feldesman
email:  feldesmanm at pdx.edu
email:  feldesman at ibm.net
fax:    503-725-3905

"Math is hard.  Let's go to the mall"  Barbie

Powered by:  Monstrochoerus - the 300 MHz Pentium II
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list