gss_which_years | R Documentation |
See which years a particular question was asked in the GSS.
gss_which_years(data, variable)
data |
A tibble of data, usually gss_all |
variable |
The variable or variables we want to check. Provide variables in tidyselect style, i.e. unquoted, and for multiple variables enclose unquoted in c() |
What years was a particular question asked in the GSS?
A tibble showing whether the question or questions were asked in each of the GSS years
## Not run:
data(gss_all)
gss_all %>%
gss_which_years(fefam)
gss_all %>%
gss_which_years(c(industry, indus80, wrkgovt, commute))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.