[R] Code Book from SPSS Data

Frank Harrell f.harrell at Vanderbilt.Edu
Mon Oct 28 16:58:15 CET 2013


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 on that number to 
see the levels.  Variables having the same levels are combined in the 
latter part.

Frank

-- 
Frank E Harrell Jr Professor and Chairman      School of Medicine
                    Department of Biostatistics Vanderbilt University



More information about the R-help mailing list