Skip to main content
Question
Issac
Want to make a difference by making some contribution to open source community!
Asked a question last year

how to use subset in r?

Where am I?

In answerQA you can ask and answer questions and share your experience with others!

Angel Larry
I Don't like to Delete Old Messages, because they are My Memories!

To combine multiple conditions to subset a data frame using ‘OR’, use the following:

my.data22.frame <- subset(data , V1 > 2 | V2 < 4)