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

Error in eval(predvars, data, env) #7

Closed
JDBLab opened this issue Apr 8, 2023 · 1 comment
Closed

Error in eval(predvars, data, env) #7

JDBLab opened this issue Apr 8, 2023 · 1 comment

Comments

@JDBLab
Copy link

JDBLab commented Apr 8, 2023

Hello,
Thank you for this package. Its really helpful. I am exactly following the tutorial. However, I am getting the following error. Could you please help me with the following issue-

fit_rf <- randomForest(D3~., data = Z1_D3)
Error in eval(predvars, data, env) : object 'NKX2-2' not found
D3_tf_top10 <- importance(fit_rf)[order(importance(fit_rf)[, 1], decreasing = T), ][1:10]
Error in importance(fit_rf) : object 'fit_rf' not found

@sgao30
Copy link
Collaborator

sgao30 commented May 4, 2023

Hi,
Thank you for trying our tool!
It looks like the issue about the object name. Could you please check the TF names in Z1_D3? If the there is ‘'NKX2-2’, try to change it to ''NKX2.2' and run again. Thank you.

@sgao30 sgao30 closed this as completed May 4, 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