gss_which_years: gss_which_years

View source: R/gssr-package.R

gss_which_yearsR Documentation

gss_which_years

Description

See which years a particular question was asked in the GSS.

Usage

gss_which_years(data, variable)

Arguments

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()

Details

What years was a particular question asked in the GSS?

Value

A tibble showing whether the question or questions were asked in each of the GSS years

Examples

## Not run: 
data(gss_all)
gss_all %>%
  gss_which_years(fefam)

gss_all %>%
  gss_which_years(c(industry, indus80, wrkgovt, commute))

## End(Not run)

kjhealy/gssr documentation built on Nov. 14, 2024, 12:08 a.m.