Check if the Object is a Matrix in R Programming - is.matrix() Function Last Updated : 12 Jun, 2020 Comments Improve Suggest changes Like Article Like Report is.matrix() function in R Language is used to return TRUE if the specified data is in the form of matrix else return FALSE. Syntax: is.matrix(x) Parameters: x: specified matrix Example 1: Python3 # R program to illustrate # is.matrix function # Specifying some different types of arrays A <- matrix(c(1:5)) B <- matrix(c(1:12), nrow = 4, byrow = TRUE) C <- matrix(c(1:12), nrow = 4, byrow = FALSE) # Calling is.matrix() function is.matrix(A) is.matrix(B) is.matrix(C) Output: [1] TRUE [1] TRUE [1] TRUE Example 2: Python3 # R program to illustrate # is.matrix function # Specifying Biochemical oxygen demand data x <- BOD # Calling is.matrix() function is.matrix(x) # Calling is.matrix() function # over different types of data is.matrix(4) is.matrix("2") is.matrix("a") Output: [1] FALSE [1] FALSE [1] FALSE [1] FALSE Comment More infoAdvertise with us Next Article Check if the Object is a Matrix in R Programming - is.matrix() Function K Kanchan_Ray Follow Improve Article Tags : R Language R Matrix-Function Similar Reads Check if the Object is a List in R Programming - is.list() Function is.list() function in R Language is used to return TRUE if the specified data is in the form of list, else returns FALSE. Syntax: is.list(X) Parameters: x: different types of data storage Example 1: Python3 # R program to illustrate # is.list function # Initializing some list a <- list(1, 2, 3) b 1 min read Check if an Object is of Type Numeric in R Programming - is.numeric() Function is.numeric() function in R Language is used to check if the object passed to it as argument is of numeric type. Syntax: is.numeric(x) Parameters: x: Object to be checked Example 1: Python3 # R program to check if # object is of numeric type # Calling is.numeric() function is.numeric(1) is.numeric(1. 1 min read Check if a Matrix is Symmetric or not in R Programming - isSymmetric() Function isSymmetric() function in R Language is used to check if a matrix is a symmetric matrix. A Symmetric matrix is one whose transpose is equal to the matrix itself. Syntax: isSymmetric(x) Parameters: x: Matrix to be checked Example 1: Python3 1== # R program to check if # a matrix is symmetric # Creati 1 min read Check if an Object is a Table in R Programming - is.table() Function is.table() function in R Language is used to check if an object is a table. Syntax: is.table(x) Parameters: x: Object to be checked Example 1: Python3 1== # R Program to check # if an object is a table # Creating a vector vec = c(2, 4, 3, 1, 2, 3, 2, 1, 4, 2) # calling is.table() Function is.table(v 1 min read Convert an Object into a Matrix in R Programming - as.matrix() Function The as.matrix() function within R converts objects of various classes into a matrix. This can be helpful to work with structures of various data that can be converted into the matrix structure so that it becomes easier to analyze.Syntax: as.matrix(x)Parameters: x: Object to be convertedExample 1: Co 2 min read Like