Please briefly describe your problem and what output you expect. If you have a question, please don't use this form. Instead, ask on https://stackoverflow.com/ or https://community.rstudio.com/.
Please include a minimal reproducible example (AKA a reprex). If you've never heard of a reprex before, start by reading https://www.tidyverse.org/help/#reprex.
Haven converts some labelled Stata variable into numeric rather than haven_labelled
library(haven) anes2016 <- read_dta("anes2016subset.dta")
In the provided dataset, the variables Sex, RaceEthnic, EducLevel, HSgrad, and BAplus should all become haven_labelled upon import into R. As far as I know, they are no different in Stata than many other variables in the dataset that do become haven_labelled upon import: each variable has value labels in Stata. In previous versions of the same dataset, prior to adding the Sex variable, Haven converted all the above-listed variables into haven_labelled.
anes2016subset.dta.zip
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4