[R] Reading fixed column format
Jason Barnhart
jasoncbarnhart at msn.com
Mon Sep 11 18:39:25 CEST 2006
Not familiar w/ Stata, but these functions read data files and should
provide the functionality you wish.
?read.fwf
?read.table
?scan
----- Original Message -----
From: "Anupam Tyagi" <AnupTyagi at yahoo.com>
To: <r-help at stat.math.ethz.ch>
Sent: Monday, September 11, 2006 8:26 AM
Subject: [R] Reading fixed column format
> How can I read fixed column data (without a delimiter) from a large ASCII
> file
> directly into R? I want to read non-contiguous variables. I am trying to
> avoid
> reading it first into a DBMS and then choosing the variables. I would
> perfer to
> format and label it along while reading if possible. Something like what
> STATA
> does with dictionary. Anupam.
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
More information about the R-help
mailing list