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
Use subset (for interactive use)
subset
subset(expr, cell_type == "hesc") subset(expr, cell_type %in% c("bj fibroblast", "hesc"))
or better dplyr::filter()
dplyr::filter()
filter(expr, cell_type %in% c("bj fibroblast", "hesc"))