daily pastebin goal
64%
SHARE
TWEET

Untitled

a guest Jan 18th, 2019 50 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. a <-data.frame(a=c("a","a","b","c","b","d"),b=c(1,2,3,4,2,3))
  2. > a
  3.   a b
  4. 1 a 1
  5. 2 a 2
  6. 3 b 3
  7. 4 c 4
  8. 5 b 2
  9. 6 d 3
  10.    
  11. a b
  12. 1 a 2
  13. 2 b 3
  14. 3 b 2
  15.    
  16. a[which(a[,"a"]=="a"),]
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top