Re: [R] matrix creation -- answer: data.matrix()

2008-01-29 Thread Martin Maechler
> "GS" == Gavin Simpson <[EMAIL PROTECTED]> > on Tue, 29 Jan 2008 00:09:05 + writes: GS> hits=-2.6 tests=BAYES_00 GS> X-USF-Spam-Flag: NO GS> On Mon, 2008-01-28 at 12:17 -0700, Michelle DePrenger-Levin wrote: >> I was asked for the following information and hope it

Re: [R] matrix creation

2008-01-28 Thread Gavin Simpson
hits=-2.6 tests=BAYES_00 X-USF-Spam-Flag: NO On Mon, 2008-01-28 at 12:17 -0700, Michelle DePrenger-Levin wrote: > I was asked for the following information and hope it might help those who > could answer my question... That looks fine to me Michelle. You will have problems with as.matrix on thi

Re: [R] matrix creation

2008-01-28 Thread Michelle DePrenger-Levin
I was asked for the following information and hope it might help those who could answer my question... To import the table I used: AsMi05test=read.csv("C:/AsMi_Site05_1998.csv") > str(AsMi05test) `data.frame': 12 obs. of 8 variables: $ X : Factor w/ 6 levels

Re: [R] matrix creation

2008-01-28 Thread Gavin Simpson
hits=-2.6 tests=BAYES_00 X-USF-Spam-Flag: NO Hi Michelle, You don't show your read.csv or read.table call, nor the output of str(obj) where obj is the name of the object you read the data into. I notice that you have explicit 0 and NA. Is there a chance that you have entered NA into the cells th