Re: [R] Read TXT file with variable separation

2011-11-29 Thread Raphael Saldanha
Jan, This is what I'm looking for! Very thanks! On Tue, Nov 29, 2011 at 9:24 AM, Jan van der Laan wrote: > > Raphael, > > This looks like fixed width format which you can read with read.fwf. > > In fixed width format the columns are not separated by white space (or other > characters), but are i

Re: [R] Read TXT file with variable separation

2011-11-29 Thread Jan van der Laan
Raphael, This looks like fixed width format which you can read with read.fwf. In fixed width format the columns are not separated by white space (or other characters), but are identified by the positition in the file. So in your file, for example the first field looks to contained in the

[R] Read TXT file with variable separation

2011-11-29 Thread Raphael Saldanha
Hi! I have to import some TXT files into R, but the separation between the columns are made with different blank spaces, but each file use the same separation. Example: 31 104 5 0 11RUA SAO SEBASTIAO 25 BAIRRO FILETO