Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding SAS labels when importing #17

Closed
bashirhuda opened this issue Jun 21, 2023 · 3 comments
Closed

Adding SAS labels when importing #17

bashirhuda opened this issue Jun 21, 2023 · 3 comments
Assignees

Comments

@bashirhuda
Copy link

Hi Chris-

Is there a way to add SAS labels to variables (in the data frame) when importing an NHANES table using the function nhanes?

Thanks!
Huda

@bashirhuda
Copy link
Author

Thanks, Chris! Using this code to translate the codebook would write over original variables/their labels:

demog_vars = names(demog)
demog2 <- suppressMessages(nhanesTranslate("DEMO_H", demog_vars, data=demog))
View(demog2)

@cjendres1
Copy link
Owner

Hi Huda, I include a fix in branch 'explode'. Please let me know if you're able to install and test it out.

@cjendres1
Copy link
Owner

Fix included in nhanesA version 0.7.4 published on 7/16/2023.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants