Skip to main content
Want to make a difference by making some contribution to open source community!
Asked a question 2 years ago

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.data27.frame <- subset(data , V1 > 2 | V2 < 4)