I am creating a Kaggle notebook for my first analysis and I am having issues with my scripts
running.
I wrote out this script to filter out any numbers less than zero from my data set.
nrow(trips_2019[trips_2019$ride_length < 0,])
trips_2019 <- trips_2019[!trips_2019$ride_length <0,]
glimpse(trips_2019)
I copy and pasted this script directly from R-Studio into Kaggle and I keep getting this error regarding the $
operator being invalid for atomic vectors.
I tried copying and pasting it again multiple times from R-Studio and also tried typing it manually as
well to make sure there were no typos. Not really sure how else to go out solving this.
Please let me know if someone has advice on this.
Thanks