Problems like these could be caused by improperly spaced columns. Try
table(tdf1). If you see only "0" and "1", then you should be fine.
However I suspect that you might see things like " 0", "0", " 1", "1"
which means that there is a an extra space between the delimiters.
Report back what you ge
ancisco
>
>
>> From: Illyes Eszter <[EMAIL PROTECTED]>
>> To: r-help@stat.math.ethz.ch
>> Subject: [R] how to convert strings back to values?
>> Date: Wed, 9 Nov 2005 21:55:44 +0100 (CET)
>>
>> Dear All,
>>
>> It's Eszter from Hungary, a total b
Examples of the code you used would have helped i.e. We don't know how you
transposed your matrix. Did you use t()? In any event, as.integer() may be
what you need.
Francisco
From: Illyes Eszter <[EMAIL PROTECTED]>
To: r-help@stat.math.ethz.ch
Subject: [R] how to convert stri
Dear All,
It's Eszter from Hungary, a total beginner with R. My problem is the
following:
I have a dataset with binary values as a comma separated textfile. The
samples are in the coloumns and the species are in the rows.
I have to transpose it for the further PCoA analysis. There is no
pr