R Error – attempt to apply non-function (2 Examples)

This page shows how to deal with the error “attempt to apply non-function” in the R programming language.

Example 1: Reproducing the Error Message – attempt to apply non-function

5 (10)                       # No mathematical operator between values
# Error: attempt to apply non-function

Example 2: Solving the Error Message – attempt to apply non-function

5 * (10)                     # Specifying mathematical operator between values
# [1] 50

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