Documentation for the General Social Survey Cumulative Data (1972-2024, release 1) packaged for easy use in R. This package is a companion to the gssr
package. I recommend you install both of them.
Installation
The relatively large number of variables documented in gssrdoc means it is not suitable for hosting on CRAN, the core R package repository. The same is true of the {gssr}
package.
Install via R-Universe
My R Universe provides binary packages for gssrdoc and {gssr}
. To install both packages, copy and paste the following code to the R console:
# Install 'gssrdoc' from 'ropensci' universe
install.packages('gssrdoc', repos =
c('https://kjhealy.r-universe.dev', 'https://cloud.r-project.org'))
# Also recommended: install 'gssr' as well
install.packages('gssr', repos =
c('https://kjhealy.r-universe.dev', 'https://cloud.r-project.org'))
Because the packages have dependencies that are on CRAN, we add CRAN as well as the R Universe to the repos
argument.
The binary packages will install noticeably quicker than building the package from source. Plus, you can use install.packages()
directly.
Install direct from GitHub
You can also install gssrdoc from GitHub with:
remotes::install_github("kjhealy/gssrdoc")
Integrated Help
gssrdoc provides documentation for all GSS variables in the cumulative data file via R’s help system. You can browse variables by name in the package’s help file or type ?
followed by the name of the variable at the console to get a standard R help page containing information on the variable, the values it takes and (in most cases) a crosstabulation of the variable’s values for each year of the GSS. This facility is particularly convenient in an IDE such as RStudio or Microsoft Visual Studio.
Information about the variables is also contained in the gss_dict
object:
Official GSS Documentation
The GSS Documentation Page contains links to extensive technical documentation for the survey, including Release Notes for the 1972-2024 Cumulative File and What’s New in 2024.
Further details
The package is documented at http://kjhealy.github.io/gssrdoc/. The GSS homepage is at http://gss.norc.org/. While gssrdoc package incorporates the publicly-available GSS cumulative data file, this package is not associated with or endorsed by the National Opinion Research Center or the General Social Survey.