Re: [R] transform table to matrix

2011-03-02 Thread Scott Chamberlain
Agreed Peter: weird. What is the purpose of your inquiry SK? And why is your inquiry so similar to the one at the hyperlink I provided? Scott On Wednesday, March 2, 2011 at 6:10 PM, P Ehlers wrote: > Scott Chamberlain wrote: > > This thread seems freakishly similar to what you are askingSco

Re: [R] transform table to matrix

2011-03-02 Thread P Ehlers
Scott Chamberlain wrote: This thread seems freakishly similar to what you are askingScott Even to the point of including the same typo as well as proof that neither poster bothered to read the posting guide. Great spot, Scott! Peter Ehlers http://tolstoy.newcastle.edu.au/R/help/06/07/3

Re: [R] transform table to matrix

2011-03-02 Thread Scott Chamberlain
This thread seems freakishly similar to what you are askingScott http://tolstoy.newcastle.edu.au/R/help/06/07/30127.html On Wednesday, March 2, 2011 at 7:43 AM, SK MAIDUL HAQUE wrote: > I have a text file that I have imported into R. It contains 3 columns and > 316940 rows. The first column

Re: [R] transform table to matrix

2011-03-02 Thread Ista Zahn
Hi Sk, On Wed, Mar 2, 2011 at 8:43 AM, SK MAIDUL HAQUE wrote: >  I have a text file that I have imported into R. It contains 3 columns and > 316940 rows. The first column is vegetation plot ID, the second species > names and the third is a cover value (numeric). I imported using the > read.table

Re: [R] transform table to matrix

2011-03-02 Thread Sarah Goslee
If I understand you correctly, the easiest thing to do is import the data without converting the strings to factors (the default behavior) using: mydata <- read.table("mydata.csv", as.is=TRUE) If that isn't actually your problem, the output of str(mydata) would be helpful, as would an actual examp

[R] transform table to matrix

2011-03-02 Thread SK MAIDUL HAQUE
I have a text file that I have imported into R. It contains 3 columns and 316940 rows. The first column is vegetation plot ID, the second species names and the third is a cover value (numeric). I imported using the read.table function. My problem is this. I need to reformat the information as a