Re: [R] Getting codebook data into R

2012-02-13 Thread Chris Stubben
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

Re: [R] Getting codebook data into R

2012-02-13 Thread rmailbox
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

Re: [R] Getting codebook data into R

2012-02-11 Thread Daniel Nordlund
> -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

Re: [R] Getting codebook data into R

2012-02-11 Thread barny
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

Re: [R] Getting codebook data into R

2012-02-09 Thread Daniel Nordlund
> -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

Re: [R] Getting codebook data into R

2012-02-09 Thread rmailbox
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

Re: [R] Getting codebook data into R

2012-02-09 Thread David Winsemius
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

Re: [R] Getting codebook data into R

2012-02-09 Thread peter dalgaard
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

Re: [R] Getting codebook data into R

2012-02-09 Thread Douglas Bates
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

Re: [R] Getting codebook data into R

2012-02-09 Thread Peter Alspach
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

Re: [R] Getting codebook data into R

2012-02-09 Thread Richard M. Heiberger
?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

[R] Getting codebook data into R

2012-02-09 Thread barny
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

[R] Getting codebook data into R

2012-02-09 Thread barny
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

[R] Getting codebook data into R

2012-02-09 Thread barny
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