[R] Reading formated databases

Uwe Ligges ligges at statistik.uni-dortmund.de
Mon Dec 8 13:06:36 CET 2003


Kenneth Cabrera wrote:

> Hi R-users:
> 
> How can I read an ascii database that is controled by the column number?
> For example:
> 
> 7349593Luis Miguel      Ariza Gutierrez           32342123
> 9394583XXXXX XX         YYYYYYYYYYYY              34234930
> 39483  KKKKKKKK KKKKKKKKCCCCCCC CCCCCCCCCCCCCCCCCC39203230
> 3484932YYYYYYYYYY YYYYYYZZZZZZ ZZZZZZZZZZZZZZZ    39402343
>  39203WWWWWWWWWWWW  WWWVVVVVVVVVVVV VVVVVVVVVVVVV  342343
> 
> There are 4 variables, ID, Name, Last Name, Numeric Variable.
> 1 Variable column 1-8
> 2 Variable column 9-25
> 3 Variable column 26-51
> 4 Variable column 51-59
> 
> Thank you for your help
> 
> Kenneth
> 

See ?read.fwf

Uwe Ligges




More information about the R-help mailing list