Find rows in a data frame where two columns are equal

前端 未结 1 1886
伪装坚强ぢ
伪装坚强ぢ 2020-12-10 18:21

I\'d like to select the rows in a data frame where two columns, A and B are equal. I have tried this:

A <- c(0,1,2)
B <- c(2,1.000001,0)
df <- as.da         


        
相关标签:
1条回答
  • 2020-12-10 18:45
    mteq <- mtcars[mtcars$gear==mtcars$carb, ]
    
    0 讨论(0)
提交回复
热议问题