I have a data.frame in R. I need to give two distinct conditions a shot two unique columns, yet I need these conditions to be inclusive. Consequently, I might want to utilize "OR" to join the conditions. I have utilized the following syntax before with lot of success when I needed to utilize the "AND" condition.
my.data.frame <- data[(data$V1 > 2) & (data$V2 < 4), ]
But I don't know how to use an 'OR' in the above.