Hi, it seems not possible to susbset a svydesign object (DBI svydesign) and use variables to make the subset expression
uff<-c("14","15") for (i in 1:length(uff)) { subpnad<-subset(pnad, uf==uff[i] & v0302=='4') } the error is the following Error in sqliteSendQuery(con, statement, bind.data) : error in statement: no such column: uff I have tried to use eval to make the expression without sucess, then for (i in 1:length(uff)) { expr<-eval(paste0("uf==",uff[i]," & v0302=='4')) subpnad<-subset(pnad, expr) } complains that "no such column: expr" exists. how to solve that? Thanks! [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.