Advertisement
Guest User

Untitled

a guest
Jun 24th, 2019
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. Groups_name col1 col2
  2. group1 3 4
  3. group1 1 1
  4. group1 1 1
  5. group2 1 1
  6. group3 3 7
  7. group3 1 1
  8. group4 3 3
  9. group4 1 1
  10.  
  11. Groups_name col1 col2
  12. group1 3 4
  13. group1 1 1
  14. group1 1 1
  15. group4 3 3
  16. group4 1 1
  17.  
  18. tab %>%
  19. group_by(Groups_name) %>%
  20. filter(all(col1 == col2,col2-2,col2+2)) %>%
  21. filter(any(col1 > 1))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement