Explain the usage of which() function in r language?
Answer Posted / Dhramveer Singh
The which() function in R returns the position(s) of the elements in a vector or array that meet a specified condition. For example, `which(x > 5)` would return the indices of all elements in the vector x greater than 5.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers