In this:
y <- svytable(~date4a, design = Pew.w)
date4a is a column name.
I want to replace date4a with a variable. The variable of course, will refer to a column name.
E.g. something like:
col <- "date4a"
y <- svytable(~col, design = Pew.w) #This doesnt' work
How may I do that?
Rcoding question, not a question about statistics. It is off topic here, but should be on topic on Stack Overflow. If you wait, we will migrate it for you.