-
Notifications
You must be signed in to change notification settings - Fork 10
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
Extended Codebook Data #9
Comments
Hi Jason, nhanesTableVars with namesonly=TRUE will pass back the variable names. You can then loop through the variables and call nhanesTranslate for each desired variable. Thanks for using nhanesA! |
Someone else also commented on the codebook label which is currently not returned by nhanesTranslate. Would help if you can write out a simple example of your desired output. |
That clears things up actually. If you want that full description returned including the text fields and the additional columns (Count, Cumulative, Skip) then the behavior is different enough from nhanesTranslate that I will create a new function: nhanesCodebook. Should have it ready in a couple days. |
After further consideration ... this will be easier than I thought. Adding details = TRUE already gives you the last columns. Just need to add the text fields |
nhanesCodebook.txt Let me know if the result of the last command is what you're looking for. It's a list since there's a mixture of data types. |
This is perfect, thank you so much for the help! |
Hello,
This tool is very helpful, thank you for making it. I am currently working on a project with NHANES that also assesses the Codebook/variable data, so your nhanesTableVars functionality is life-saving.
On that front, is there any way to extend that functionality to include the expected values and their keys? For example, variable
AUQ020D
has labelEarache Last 24 Hours, Left?
, has a descriptionHave you had an earache in left ear in the last 24 hours?
and the set of expected valuesYes
No
Don't know
orMissing
. The raw data does not exist in any form I have been able to find or download and it would be invaluable.The text was updated successfully, but these errors were encountered: