Check if a Matrix is Symmetric or not in R Programming - isSymmetric() Function Last Updated : 16 Jun, 2020 Comments Improve Suggest changes Like Article Like Report 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 # Creating a diagonal matrix x1 <- diag(3) # Creating a matrix x2 <- matrix(c(1, 2, 2, 3), 2) # Calling isSymmetric() function isSymmetric(x1) isSymmetric(x2) Output: [1] TRUE [1] TRUE Example 2: Python3 1== # R program to check if # a matrix is symmetric # Creating a matrix x1 <- matrix(c(1:9), 3, 3) # Calling isSymmetric() function isSymmetric(x1) Output: [1] FALSE Comment More infoAdvertise with us Next Article Check if a Matrix is Symmetric or not in R Programming - isSymmetric() Function N nidhi_biet Follow Improve Article Tags : R Language R Matrix-Function Similar Reads Check if the Object is a Matrix in R Programming - is.matrix() Function 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 <- matri 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 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 sorted or not in R Programming - is.unsorted() Function is.unsorted() function in R Language is used to check if an object is sorted or not. It returns False if the object is sorted otherwise True. Syntax: is.unsorted(x) Parameters: x: Object Example 1: Python3 1== # R Program to check if # an object is sorted # Creating a vector x <- c(1:9) # Creatin 1 min read Check whether a value is logical or not in R Programming - is.logical() Function is.logical() function in R Language is used to check whether a value is logical or not. Syntax: is.logical(x) Parameters: x: Value to be checked Example 1: Python3 1== # R Program to test whether # a value is logical or not # Calling is.logical() function is.logical(0) is.logical(!5) is.logical(T) i 1 min read Like