Skip to content
Prev 69143 / 398502 Next

selections of data by one variable

test <- data.frame(cbind(1:10,11:20))
names(test) <- c("a", "b")
test[test$b == 17,]
test[test$b %in% c(13, 15, 17),]
Tu Yu-Kang wrote: