Thank you for replying the as.Date error question.

I have one more question as below.
I used cbind command, and data x changed, 2010-11-16 to 14929, 2010-11-17 to
14930.
What happened to them?
What should I do to see yyyy-mm-dd format data?

> x=c("11/16/2010","11/17/2010","11/18/2010","11/19/2010")
> x=as.Date(x,"%m/%d/%Y")
> x
[1] "2010-11-16" "2010-11-17" "2010-11-18" "2010-11-19"
> y=c(1753.75,15077,1759.35,15078)
> cbind(x,y)
         x        y
[1,] 14929  1753.75
[2,] 14930 15077.00
[3,] 14931  1759.35
[4,] 14932 15078.00


Thanks
Wonjae

--
View this message in context: 
http://r.789695.n4.nabble.com/as-Date-error-tp3456279p3456279.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.

Reply via email to