I want to filter rows from a data.frame based on a logical condition. Let\'s suppose that I have data frame like
data.frame
expr_value cell_type 1
You could use the dplyr package:
dplyr
library(dplyr) filter(expr, cell_type == "hesc") filter(expr, cell_type == "hesc" | cell_type == "bj fibroblast")