Guest User

Untitled

a guest
Oct 18th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. library(data.table)
  2. dt1 <- data.table(mtcars)
  3. dt1[c(cyl=='6',hp=='110'), qsec]
  4.  
  5. dt1[cyl=='6' || hp=='110', qsec]
  6.  
  7. [1] 16.46 17.02 18.61 19.44 17.02 20.22 15.84 20.00 22.90 18.30 18.90 17.40 17.60 18.00 17.98 17.82
  8. [17] 17.42 19.47 18.52 19.90 20.01 16.87 17.30 15.41 17.05 18.90 16.70 16.90 14.50 15.50 14.60 18.60
Add Comment
Please, Sign In to add comment