Learn R Programming

forcats (version 0.5.1)

gss_cat: A sample of categorical variables from the General Social survey

Description

A sample of categorical variables from the General Social survey

Usage

gss_cat

Arguments

Format

year

year of survey, 2000--2014

age

age. Maximum age truncated to 89.

marital

marital status

race

race

rincome

reported income

partyid

party affiliation

relig

religion

denom

denomination

tvhours

hours per day watching tv

Examples

Run this code
gss_cat

fct_count(gss_cat$relig)
fct_count(fct_lump(gss_cat$relig))

Run the code above in your browser using DataLab