search for: myvars2

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

Did you mean: myvar2
2007 Aug 26
3
subset using noncontiguous variables by name (not index)
...his does what I want. summary( subset(mydata,select=c(x1,x3:x5,x7) ) ) # Can I substitute myVars? attach(mydata) myVars1 <- c(x1,x3:x5,x7) # Not looking good! myVars1 # This doesn't do the right thing. summary( subset(mydata,select=myVars1 ) ) # Total desperation on this attempt: myVars2 <- "x1,x3:x5,x7" myVars2 # This doesn't work either. summary( subset(mydata,select=myVars2 ) ) ========================================================= Bob Muenchen (pronounced Min'-chen), Manager Statistical Consulting Center U of TN Office of Information Technology 2...