In R, the ______ function can be used to check if an object is a matrix.

  • is.matrix()
  • is.vector()
  • is.data.frame()
  • is.array()
In R, the is.matrix() function can be used to check if an object is a matrix. It returns TRUE if the object is a matrix and FALSE otherwise. This function is useful for verifying the type of an object before applying operations specific to matrices.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *