If you want to use colClasses, then do:
read.table(, colClasses=rep('numeric', 50))
On Feb 12, 2008 5:40 PM, Weidong Gu [EMAIL PROTECTED] wrote:
I have a data file with 50 columns. Among them, there are two
coordinates, X and Y
X
Y
641673.78807
3607080.78438
641436.56207
It is just printing them out with that significance; the numbers are stored
with about 15 digits. If you want more, use 'options':
x - scan(textConnection(641673.78807
+
+ 3607080.78438
+
+ 641436.56207
+
+ 3607108.30543
+
+ 641165.28042
+
+ 3607136.82957
+
+ 640879.58373
+
+ 3607116.20568
+
+
I have a data file with 50 columns. Among them, there are two
coordinates, X and Y
X
Y
641673.78807
3607080.78438
641436.56207
3607108.30543
641165.28042
3607136.82957
640879.58373
3607116.20568
When I use read.table, it rounds X and Y to the maximal 8 decimal number
as.
641673.8
3 matches
Mail list logo