Skip to content

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

Open
@kcsc4848

Description

@kcsc4848

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions