I'm very new to R and having difficulty. I imported a data set yesterday in my lab and was able to work on it but since then whenever I import data I am getting subset errors.
df[2,3]
Error in df[2, 3] : object of type 'closure' is not subsettable
df[2]
Error in df[2] : object of type 'closure' is not subsettable
I think this has something to do with the way I am importing my data but because the initial data I imported during lab worked well.
My current method of importing importing from Text (readr) and copying and pasting the first two lines from my code preview into my R script.