[R] c() question
Christoph Lehmann
christoph.lehmann at gmx.ch
Mon Mar 29 10:58:00 CEST 2004
Hi
I need to define the following
c("one group" = class.weight[2], "other group" = class.weight[1])
#class.weight = c(1,2)
but I don't like the hard-coded way and would like to use
my.group <- array(c("one group", "other group"))
but now
c(my.group[1] = class.weight[2], my.group[2] = class.weight[1])
gives an error
how can I solve this small problem?
thanks for a hint
christoph
--
Christoph Lehmann <christoph.lehmann at gmx.ch>
More information about the R-help
mailing list