Error in R – Object of Type Closure is not Subsettable (Example Code)
In this R post you’ll learn how to fix the error object of type ‘closure’ is not subsettable.
Example: Fixing the Error: Object of Type ‘Closure’ is not Subsettable
mean[1:5] # Using mean() function the wrong way # Error in mean[1:5] : object of type 'closure' is not subsettable |
mean[1:5] # Using mean() function the wrong way # Error in mean[1:5] : object of type 'closure' is not subsettable
mean(1:5) # Proper usage of mean() # [1] 3 |
mean(1:5) # Proper usage of mean() # [1] 3