[R] TXT-file with R to SPS-file

Nordlund, Dan (DSHS/RDA) NordlDJ at dshs.wa.gov
Tue Mar 6 18:39:43 CET 2012

> -----Original Message-----
> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-
> project.org] On Behalf Of Aims
> Sent: Tuesday, March 06, 2012 9:00 AM
> To: r-help at r-project.org
> Subject: [R] TXT-file with R to SPS-file
> Hey,
> for a statistical analysis I have to work with some micro dates in
> I only have txt-files though (any further details concerning the format
> or
> something like that, I don´t have. I can only see a lot of numbers when
> I
> open it). On the same page I found another Download especially for R. I
> downloaded those files to, they have names like: dicPNAD2006.R or
> dicPNAD2006supl.R.
> I have the R software ((R 2.14.2 GUI 1.50 Leopard build 64-bit (6126))
> on my
> Mac. But I can´t read the data or I don´t know the right orders. I also
> have
> an Readme File (it is in portuguese) but for me it´s too unexact. But I
> think the main orders are:
> le.pesquisa(dicionario, pathname.in, pathname.out=NA, codigos,
> nomes=NA,
> quant=NA,
> tbloco=2000)
> as well as
> library(IBGEPesq)
> data(dicPNAD2005)
> caminho.microdados <- file.path("E:","DADOS","PES2005.TXT")
> dados <- le.pesquisa(dicionario=dicpes2005,
> pathname.in=caminho.microdados,
> pathname.out="dados.Rdata",
> codigos=c("V4703","V4704","V4705","V4707","V4729"),
> quant=408148)
> my software dosen´t know the le.pesquisa variable and I Don´t know how
> to
> register it.
> The Files I got on the following homepage (DADOS holds the txt-files
> and
> LEITURA EM R the .R files)
> http://www.ibge.gov.br/home/estatistica ... dados.shtm
> I´d be very thankful for help!
> Greetings
> Amelie

The URL you provided does not work (at least I am denied access), so it will be difficult to help you read the data.


Daniel J. Nordlund
Washington State Department of Social and Health Services
Planning, Performance, and Accountability
Research and Data Analysis Division
Olympia, WA 98504-5204

More information about the R-help mailing list