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 o
ebook(dat)
names(dat)
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
On Sun, 27 Oct 2013 14:37:27 -0700 (PDT)
Peter Maclean 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 prompt for starters.
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 direct
On Sat, Oct 26, 2013 at 9:37 PM, Peter Maclean 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 'codebook' is something
w
5 matches
Mail list logo