
Robert S. answered 11/22/19
Tutor
5.0
(186)
R Developer and Analyst
The "OR" operator in R is the bar symbol (|). So, your code should be something like the following:
```
my.data.frame <- data[(data$V1 > 2) | (data$V2 < 4), ]
# Alternative approach with subset()
my.data.frame <- subset(data, V1 > 2 | V2 < 4)
```
Hope this helps!