Re: [R] Code Book from SPSS Data

2013-10-28 Thread Gesmann, Markus
) description(dat) I hope this helps. Markus -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Peter Maclean Sent: 26 October 2013 21:37 To: r-help@r-project.org Subject: Re: [R] Code Book from SPSS Data I do not have SPSS and I

Re: [R] Code Book from SPSS Data

2013-10-28 Thread Frank Harrell
Not certain about .por but this works with ordinary SPSS files: require(Hmisc) dat - spss.get(...) # gets variable labels, etc. contents(dat) html(contents(dat), ...) The last command produces a hyperlinked data dictionary, e.g., for each variable the number of levels is given and you click

Re: [R] Code Book from SPSS Data

2013-10-27 Thread Barry Rowlingson
On Sat, Oct 26, 2013 at 9:37 PM, Peter Maclean pmaclean2...@yahoo.com wrote: I do not have SPSS and I would like to create a code book in a data frame format using R. #How could I extract a codebook (without Summary statistics for printing)? This isn't that clear because I don't think

Re: [R] Code Book from SPSS Data

2013-10-27 Thread Peter Maclean
I am trying again. I do not have SPSS and I would like to create a code book in a data frame format using R. I am reading the SPSS file using memisc package. The script is: #Data for 2012 available at http://www.ark.ac.uk/nilt/datasets/ #Also attached ibrary(memisc) ## change the working

Re: [R] Code Book from SPSS Data

2013-10-27 Thread jwd
On Sun, 27 Oct 2013 14:37:27 -0700 (PDT) Peter Maclean pmaclean2...@yahoo.com wrote: It's not fully clear what you need, but, as I very vaguely recall, the code book in SPSS provided labels for what are called levels in factors in R, which are categorical variables. Try: ??categorical at the