Just to follow up on Dan's code - once you have a data.frame listing column
positions, then it's just a couple steps to download the file...
x <- data.frame(name=c('caseid', 'nbrnaliv', 'babysex',
'birthwgt_lb','birthwgt_oz','prglength',
'outcome', 'birthord', 'agepreg', 'finalwgt'),
begin = c(1
frame ( spssDataSet )
(Not tested. Adapted from working code.)
memisc documentation has more info about doing this and how it works.
eRic
- Original message -
From: "barny"
To: r-help@r-project.org
Date: Sat, 11 Feb 2012 10:04:16 -0800 (PST)
Subject: Re: [R] Getting
> -Original Message-
> From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org]
> On Behalf Of barny
> Sent: Saturday, February 11, 2012 10:04 AM
> To: r-help@r-project.org
> Subject: Re: [R] Getting codebook data into R
>
> Hi Eric - after
Hi Eric - after seeing the difficulty of inputting this kind of data into R I
decided to use your method. It was rather painless using PSPP to do what I
wanted - however, how do I now create an SPSS file and then use the memisc
package to read it in?
--
View this message in context:
http://r.7896
> -Original Message-
> From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org]
> On Behalf Of barny
> Sent: Thursday, February 09, 2012 12:52 PM
> To: r-help@r-project.org
> Subject: [R] Getting codebook data into R
>
> I've been trying to ge
e are several
choices here.
eRic
- Original message -
From: "David Winsemius"
To: "barny"
Cc: r-help@r-project.org
Date: Thu, 9 Feb 2012 17:50:39 -0500
Subject: Re: [R] Getting codebook data into R
On Feb 9, 2012, at 3:51 PM, barny wrote:
> I've been
On Feb 9, 2012, at 3:51 PM, barny wrote:
I've been trying to get some data from the National Survey for
Family Growth
into R - however, the data is in a .dat file and the data I need
doesn't
have any spaces or commas separating fields - rather you have to
look into
the codebook and what nu
On Feb 9, 2012, at 22:47 , Douglas Bates wrote:
>
> It's amazing how these old habits of storing data like this persist.
> The reason for fixed-format records was that you couldn't read free
> format in a Fortran program in a standard way before Fortran-77. And
> 35 years afterwards we are still
On Thu, Feb 9, 2012 at 2:51 PM, barny wrote:
> I've been trying to get some data from the National Survey for Family Growth
> into R - however, the data is in a .dat file and the data I need doesn't
> have any spaces or commas separating fields - rather you have to look into
> the codebook and wha
Tena koe
?read.fwf
HTH
Peter Alspach
-Original Message-
From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On
Behalf Of barny
Sent: Friday, 10 February 2012 9:52 a.m.
To: r-help@r-project.org
Subject: [R] Getting codebook data into R
I've been trying t
?read.fwf
Read Fixed Width Format Files
Please, one copy of your request to the list is sufficient.
Rich
On Thu, Feb 9, 2012 at 3:51 PM, barny wrote:
> I've been trying to get some data from the National Survey for Family
> Growth
> into R - however, the data is in a .dat file and the data
I've been trying to get some data from the National Survey for Family Growth
into R - however, the data is in a .dat file and the data I need doesn't
have any spaces or commas separating fields - rather you have to look into
the codebook and what number of digits along the line the data you need is
I've been trying to get some data from the National Survey for Family Growth
into R - however, the data is in a .dat file and the data I need doesn't
have any spaces or commas separating fields - rather you have to look into
the codebook and what number of digits along the line the data you need is
I've been trying to get some data from the National Survey for Family Growth
into R - however, the data is in a .dat file and the data I need doesn't
have any spaces or commas separating fields - rather you have to look into
the codebook and what number of digits along the line the data you need is
14 matches
Mail list logo