search for: tabsub

Displaying 1 result from an estimated 1 matches for "tabsub".

Did you mean: tabs
2005 Apr 28
2
Reconstruction of a "valid" expression within a function
...DF is a data frame, with Var1, Var2, Fact1, Fact2, Fact3 #and subset would be an expression, eg. Fact3 == 1 #in a first time I want to build a subset from DF #I managed to, with an expression like eg. DF$Fact3, # but I would like to skip the DF$ for convenience # so I tried something like this : tabsub<-deparse(substitute(subset)) dDF<-deparse(substitute(DF)) if (tabsub[1]!="TRUE") { subset<-paste(dDF,"$",tabsub,sep="")} #At this point, I have a string that seems to be the expression that I want sDF<-subset(DF, subset) } #But I have an error message :...