[R] error in creating gantt chart.
singularitaet at gmx.net
Mon Aug 24 16:06:21 CEST 2009
On Mon, 24 Aug 2009 05:22:17 -0700 (PDT) rajclinasia <raj at clinasia.com>
R> my.gantt.info<-read.csv("C:/Documents and
R> and for create gantt chart i used below code.
This again is why others have pointed you first to have a look at the
basics of R which can be read at:
or more extensively in:
You start to program without knowing the very basics of R. Which is in
this case the data structures. my.gantt.info is a data frame. But with
the quotation marks you don't even give this as an object to
gantt.chart because with the quotation mark you have created a single
variable with a single value which is the characters between the
quotation marks that have nothing to do with the data - hence the atomic
stuff error message...
If you would have taken the real data you need the objects name which
is: gantt.chart(my.gantt.info) but this would not work either since
as I have already pointed out in an earlier mail lase week: you need a
list but not a data.frame. So please also consider the documentation
which you can do with
which directly points you towards this.
So what you need is a list. What that is you can see either in the
what is a list? thats basics. Its an object type (there is data.frame,
matrix, list and so on)
Please learn the basics before asking such questions because you
save a lot of time for yourself and we do as well because we would not
need to answer such questions.
More information about the R-help