Re: [R] Help with reading data

About this list Date view Thread view Subject view Author view Attachment view

From: AlessandroSemeria@cramont.it
Date: Mon 17 Mar 2003 - 22:47:22 EST


Message-id: <OF6AEDCD2C.EE2EC89F-ONC1256CEC.003CE748-C1256CEC.00401821@tomware.it>

Hi!
'The bizarre thing is this error comes from using read.table'
Not bizarre, read.table is a R-function built with the R-function scan
(you can look the code simply by command read.table at the R-prompt).
 'Error in scan("tree.dat") : "scan" expected a real, got "<!DOCTYPE"'
Obviously read.table is not able to read every data file (please look at
the help for read.table and at doc/Manual/R-data.pdf).
"DOCTYPE" is something by MS-Word file, instead to make use of scan (more
fast) or read.table you need
a flat ASCII file (i.e., trivial, you make a data sheet with some
spreadsheet, Excell, and save it as separeted by tab .txt)

A.S.

----------------------------

Alessandro Semeria
Models and Simulations Laboratory
The Environment Research Center - Montecatini (Edison Group),
Via Ciro Menotti 48,
48023 Marina di Ravenna (RA), Italy
Tel. +39 544 536811
Fax. +39 544 538663
E-mail: asemeria@cramont.it

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help


About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.3 : Tue 01 Jul 2003 - 09:11:25 EST