On Feb 1, 2010, at 11:40 AM, trece por ciento wrote:
I need to import several ascii files in fixed format with two
different record types. The data comes from European Labor Force
Surveys, wich is a household survey. The first record type is for
people over 16 years, and the second much sorter is for people aged
15 or less (this record has a filler with several blanks to get the
same record length).
The files tipically have 160000 records, with 176 characters per
record, the data is numeric, corresponding to 102 variables, mostly
integers (seven variables have two decimals). My opertating system
is Windows XP.
My questions:
1. Wich do you think is the best way to import the files into R?
?read.fwf
2. Could you give me any references or examples?
There are examples in the help page.
Thanking you in advance,
Hug
[[alternative HTML version deleted]]
______________________________________________
R-help@r-project.org 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.
David Winsemius, MD
Heritage Laboratories
West Hartford, CT
______________________________________________
R-help@r-project.org 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.