[R] read.table with data in specific formats

YIHSU CHEN yschen at jhu.edu
Fri May 19 06:25:57 CEST 2006


Dear R Users

 Does anyone know how to read a text with a specific format?   I know that has to do with two functions: read.table and sprintf but not sure how to put them together.   Say that I have a text file called "data.txt", and I would to read it according with  "%.14f %.10f %2.5f", which includes three columns.

Thank you very much.


Yihsu Chen
The Johns Hopkins University




More information about the R-help mailing list