[R] read.table with data in specific formats

2006-05-18 Thread YIHSU CHEN
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

Re: [R] read.table with data in specific formats

2006-05-18 Thread Xiao Liu
read.table segments rows by separators, not by format of entry. Suppose your data.txt is like: 1.00 2.01 3.003 4.10 5.22 6.333 7.22 8.88 9.99 Then read.table(data.txt, sep = ) Best Regards XiaoQuoting YIHSU CHEN [EMAIL PROTECTED]: Dear R Users Does anyone know how to read a text with a