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

Shiny code 002, 003, and 004 Errors with running regression and incorrect argument format #36

Open
kcsc4848 opened this issue Aug 12, 2024 · 0 comments

Comments

@kcsc4848
Copy link

kcsc4848 commented Aug 12, 2024

Dear @dataprofessor,

I have been enjoying learning Shiny and R programming, and have appreciated your YouTube videos, and I am struggling with episodes 2-4 (and the associated Code on your github) and I'm not sure where to go to remedy the issue.

In each of the code files provided, I attempt to Run the code and get the following errors:

Error in y - ymean : non-numeric argument to binary operator
In addition: Warning messages:
1: In randomForest.default(m, y, ...) :
The response has five or fewer unique values. Are you sure you want to do regression?
2: In mean.default(y) : argument is not numeric or logical: returning NA

Do you know where I might be able to go, or what resources there are, for me to remedy these errors so that I can continue to learn and apply the knowledge you've shared on these tutorials? So far, I haven't been able to get very far due to these persistent errors spanning each of the R files.

Your help would be greatly appreciated!

Best regards,

Kolbi

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

1 participant