[R] problem with as.Date

Mr Natural drstrong at ucdavis.edu
Thu Jun 12 00:22:57 CEST 2008


Data into R from Excel csv file
xd<-read.csv("court.dates1.txt",as.is=T, header = F)

> str(xd)
'data.frame':   5 obs. of  1 variable:
 $ V1: chr  "6/6" "5/27" "5/16" "5/2" ...


>xd

 V1
1  6/6
2 5/27
3 5/16
4  5/2
5 4/29

cdates <- as.Date(xd,  format = " %m/ %d")

Error in as.Date.default(xd, format = " %m/ %d") : 
  do not know how to convert 'xd' to class "Date"


Suggestions appreciated,

Don


-- 
View this message in context: http://www.nabble.com/problem-with-as.Date-tp17788563p17788563.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list