R Programming Error



0

Hello, 

I am facing the below error message when I type data[] and then Run bottom

Error Message: "

Error in data[]: object of type 'closure' is not subsettable"

 

 


1 Answer(s)


0

Hi Aritra,

Please share the code as well. Please try putting into double square brackets:

data[[]]

Please refer the link for more info: https://blog.r-institute.com/en/looking-at-closures/

https://stackoverflow.com/questions/11308367/error-in-my-code-object-of-type-closure-is-not-subsettable