[R] Subset error on atomic vectors why?

jcrosbie james at crosb.ie
Thu Apr 3 00:35:49 CEST 2014


I'm getting this error: "Error in MOPrice$Date : $ operator is invalid for
atomic vectors"

The cost is: subset(MOPrice,
as.Date(MOPrice$Date,"%Y-%m-%d")==as.Date("2013-11-28","%Y-%m-%d")) 

The date column looks like:
"2013-12-31" "2013-12-31" "2013-12-31" "2013-12-31" "2013-12-31"







--
View this message in context: http://r.789695.n4.nabble.com/Subset-error-on-atomic-vectors-why-tp4688051.html
Sent from the R help mailing list archive at Nabble.com.




More information about the R-help mailing list