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 |
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 |
5 * (10) # Specifying mathematical operator between values # [1] 50