2010-07-28 66 views

回答

9
d[d$Age > "2", c("X","Y")] 
5

其他方式

subset(d, Age > "2", select=c(X, Y)) 
+0

+1酷。我總是從馬立克學到一些新東西! – 2010-07-28 15:38:50