I know how to use multiple &
's or multiple |
's at the same time. Is it possible to use both at the same time? Basically, I would like to combine the below codes, using the or command, into one line. Then I wouldn't have to merge D
and D2
to get my final output.
D <- subset(data, Quits1/Emp1 >= .5 & size == 1, )
D2 <- subset(data, Emp1 - Emp2 >= 100 & size == 1, )