To combine multiple conditions to subset a data frame using ‘OR’, use the following:
my. data.frame <- subset(data , V1 > 2 | V2 < 4)
You can also use the filter function from the dplyr package as follows:
library(dplyr)
filter(data, V1 > 2 | V2 < 4)