How to test if each element of a matrix in R meets a condition? : <p>Another challenge here. Suppose I have a square matrix in R and I want to test if each element of this matrix meets some condition. The result would be a matrix of the same size with TRUE and FALSE as elements. How can we do this avoiding a "for" loop? Thank you!</p>
