On Apr 2, 2014, at 3:35 PM, jcrosbie wrote: > 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" >
What does str(MOPrice) return? > 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. > > > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. David Winsemius Alameda, CA, USA ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.