Check if a Function is a Primitive Function in R Programming - is.primitive() Function Last Updated : 05 Jun, 2020 Summarize Comments Improve Suggest changes Share Like Article Like Report is.primitive() function in R Language is used to check if a function is a primitive function, i.e. its either a built-in function or a special function. Syntax: is.primitive(func) Parameters: func: Function to be checked Example 1: Python3 1== # R program to illustrate # the use of is.primitive function # Calling is.primitive() function is.primitive(1) is.primitive(is.primitive) is.primitive(sum) is.primitive(prod) Output: [1] FALSE [1] FALSE [1] TRUE [1] TRUE Example 2: Python3 1== # R program to illustrate # the use of is.primitive function # Sample user-defined Function evenOdd = function(x){ if(x %% 2 == 0) return("even") else return("odd") } # Calling is.primitive() function is.primitive(evenOdd) Output: [1] FALSE Comment More infoAdvertise with us Next Article Check if a Function is a Primitive Function in R Programming - is.primitive() Function N nidhi_biet Follow Improve Article Tags : R Language R Functions Similar Reads Check if a Factor is an Ordered Factor in R Programming - is.ordered() Function is.ordered() function in R Programming Language is used to check if the passed factor is an ordered factor. Syntax: is.ordered(factor) Parameters: factor: Factor to be checkedis.ordered() Function in R Programming ExampleExample 1: Demonestration of R - is.ordered() Function R # Creating a vector x 1 min read Checking if the Object is a Factor in R Programming - is.factor() Function is.factor() function in R Language is used to check if the object passed to the function is a Factor or not. It returns a boolean value as output. Syntax: is.factor(Object) Parameters: Object: Object to be checked Example 1: Python3 1== # Creating a vector x<-c("female", "male 1 min read Check if an Object is an Expression in R Programming - is.expression() Function is.expression() function in R Language is used to check if the object passed to it as argument is of the expression class. Syntax: is.expression(object) Parameters: object: Object to be checked Example 1: Python3 1== # R program to check if # an object is an expression # Creating an object x <- 1 min read 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 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 Like