Skip to content

不能运行data("NHANES_20072008"),提示Warning message: In data("NHANES_20072008") : 没有‘NHANES_20072008’这个数据集 #231

Answered by jamesjiadazhan
JustGNest asked this question in Q&A
Discussion options

You must be logged in to vote

data("NHANES_20072008") only works if the data is available within the dietaryindex package. If you download and load the data, there is no need to use the "data" function.

You're using the wrong NHANES datasets for the DASH function, which requires individual NHANES files. I updated the readme page as below: (https://github.com/jamesjiadazhan/dietaryindex). Please check the difference between NHANES files and what the DASH function requires.

Let me know if you have other questions. If possible, please give our work a Star on GitHub and cite our work when you publish the work. It helps recognize and appreciate our intellectual efforts and contributions.

  • Jiada James Zhan, Rebecca A Hodge,…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jamesjiadazhan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants