search for: himk

Displaying 1 result from an estimated 1 matches for "himk".

Did you mean: him
2018 Apr 18
3
Understanding which
Dear All, Here is a reprex: > x<- 1:100 > x[-which(x>100)] integer(0) In words, I am finding out which indices correspond to values in x which are greater than 100 ( there are no such items ) . Then I remove those indices. I should get back the x that I started with since there are no items in x which are bigger than 100 . Instead, it is returning an empty vector. Why is this ?