I have a dataframe data with the following structure:
Classes ‘tbl_df’ and 'data.frame': 4391 obs. of 53 variables
When I try to subset it to get the top 100 rows using
data100 = data[1:100,]
I get this error:
Error in `[.data.frame`(X[[i]], ...) : undefined columns selected
What could be the reason?