[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:

dat <- spss.get(...)  # gets variable labels, etc.
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 E Harrell Jr Professor and Chairman      School of Medicine
                    Department of Biostatistics Vanderbilt University

More information about the R-help mailing list