[R] changing character to a vector name
ligges at statistik.uni-dortmund.de
Wed Nov 17 11:22:33 CET 2004
Laura Holt wrote:
> Dear R People:
> I would like to generate a vector/variable name from within a loop to be
> passed to a table
> This is what I have so far:
>  "raw3.df$CITIZEN"
Life is much easier: Consider to use raw3.df[[rw2$V1]] instead.
> Essentially, I want to use the raw3.df$CITIZEN along with another value
> to generate a table.
> However, I'm stuck here. I know this is incredibly stupid.
> Thanks in advance.
> Laura Holt
> mailto: lauraholt_983 at hotmail.com
> R-help at stat.math.ethz.ch mailing list
> PLEASE do read the posting guide!
More information about the R-help