Check if a Function is a Primitive Function in R Programming - is.primitive() Function Last Updated : 05 Jun, 2020 Comments Improve Suggest changes 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 Check if the Argument is a Name in R Programming - is.name() Function is.name() function in R Language is used to return TRUE if the argument is name else returns FALSE. The is.name() and is.symbol() functions are identical. Syntax: is.name(x) Parameters: x: R object to be tested Example 1: Python3 # R program to illustrate # is.name() function # Initializing a string 1 min read Check if an Object is a Call in R Programming - is.call() Function is.call() function in R Language is used to determine whether x is a call or not. Syntax: is.call(x) Parameters: x: an arbitrary R object Example 1: Python3 # R program to illustrate # is.call function # Calling is.call() function is.call(call) Output: [1] FALSE Example 2: Python3 # R program to ill 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 value or a logical expression is TRUE in R Programming - isTRUE() Function isTRUE() function in R Language is used to check whether a value or a logical expression is true or not. Syntax: isTRUE(x) Parameters: x: logical or number-like vector Example 1: Python3 1== # R Program to test whether # an expression is TRUE # Calling isTRUE() Function isTRUE(1) isTRUE(1>0) isTR 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 Like