Published: December 6, 2019
Operators you should make more use of in R Only recently have I discovered the true power of some the operators in R. Here are some tips on some underused operators in R: The %in% operator This funny looking operator is very handy. It’s short for testing if several values appear in an object. For instance x = c(2, 6, 4, 4, 6, 8, 10, 14, 2) To grab all the values where x is 2, 4 or 14 we could do