[R] how to apply a date format for data frame
Stefan Grosse
singularitaet at gmx.net
Tue Aug 25 09:58:54 CEST 2009
On Mon, 24 Aug 2009 23:42:11 -0700 (PDT) rajclinasia <raj at clinasia.com>
wrote:
R> labels starts ends priorities
R> 1 firsttask 37987 38049 1
It is easier with the other data.frame you had with:
labels starts ends
1 first task 1-Jan-04 3-Mar-04
and as.Date see
?as.Date
e.g.
as.Date("1-Jan-04","%d-%b-%y")
or for the whole column:
myframe$starts<-as.Date(myframe$starts,"%d-%b-%y")
now I hope you have learnt how to get the data into a list for the
gantt.chart...
hth
Stefan
More information about the R-help
mailing list