Skip to main content
"The only way to do great work is to love what you do. If you haven't fount it yet, keep looking. Don't Settle,"
Asked a question 2 years ago

how to create subset in r?

Where am I?

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

Cooper Levi
Choose A Good Heart Not a Good Face.

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

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