[R] Subset error on atomic vectors why?

David Winsemius dwinsemius at comcast.net
Thu Apr 3 01:02:56 CEST 2014


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 at 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




More information about the R-help mailing list