Hi y'all still new to r but I 've looked so I figure I might as well ask. Anyway I'm working with a pretty big dataset and I finally figured how to filter out what I want, but when I try to take the mean of the subsetted data all I get in return is NA for an answer. The code I'm using to filter the data is below.
test<-subset(data1,prodDate=="1999", select = prod)
I should mention the data1 object is stored under
If that means anything. Also if there's a package that makes this easier I'm all ears since it is already painful having to do this thanks.