Re: [R] importing date vector with read.table

2010-12-10 Thread Prof Brian Ripley
On Fri, 10 Dec 2010, Jack Johnson wrote: Hi, I understand this should be an easy task but I am still struggling a bit to read a .txt file with a date vector. My code is as below: data<-read.table(file.choose(),header=TRUE,sep="\t",dec=",",colClasses=c("Date","numeric","numeric","numeric")) B

[R] importing date vector with read.table

2010-12-10 Thread Jack Johnson
Hi, I understand this should be an easy task but I am still struggling a bit to read a .txt file with a date vector. My code is as below: data<-read.table(file.choose(),header=TRUE,sep="\t",dec=",",colClasses=c("Date","numeric","numeric","numeric")) But I am getting an error: Error in charToDa