How to Fix Error in R – Non-numeric Argument to Binary Operator (Example Code)

On this page, I’ll illustrate how to deal with “non-numeric argument to binary operator” in R.

Example: How to Deal with the Error Message: non-numeric argument to binary operator

"ten" + "five"        # Equation in character format leads to error
# Error in "ten" + "five" : non-numeric argument to binary operator
10 + 5                # Equation in numeric format
# 15

Leave a Reply

Your email address will not be published. Required fields are marked *

Fill out this field
Fill out this field
Please enter a valid email address.
You need to agree with the terms to proceed

Menu
Top