I want to create a loop in which i take de colum names to obtain this columns. Next inside of the loop i want to introduce in a variable with the name of the colum and other things, the result of an operation.
Hear is an example of what i did:
for (i in colnames(data)){
paste("estim",i,"global",sep=".")<-svyby(~i,by=~Global,dis,svymean,level=0.95, vartype=c("se","ci"),deff=TRUE)
}
And i pretend to obtain something like this: estim.1_tv.global which is the name of a variable which contain a data.frame Note: colnames are like: 1_tv, 3_global ....