Skip to content

Tag Archives: R Array-Functions

tapply() function in R Language is used to apply a function over a subset of vectors given by a combination of factors Syntax: tapply(vector, factor,… Read More
as.logical() function in R Language is used to convert an object to logical vector. Syntax: as.logical(x) Parameters: x: Numeric or character object Example 1: #… Read More
intersect() function in R Language is used to find the intersection of two Objects. This function takes two objects like Vectors, dataframes, etc. as arguments… Read More
setdiff() function in R Language is used to find the elements which are in the first Object but not in the second Object. Syntax: setdiff(x,… Read More
setequal() function in R Language is used to check if two objects are equal. This function takes two objects like Vectors, dataframes, etc. as arguments… Read More
is.element() function in R Language is used to check if elements of first Objects are present in second Object or not. It returns TRUE for… Read More
which() function in R Language is used to return the indices of the object which return true for the logical operation passed as argument. Syntax:… Read More
arrayInd() function in R Language is used to get the indices of the values passed to the function as argument. This function takes values and… Read More
apply() function in R Language is used to perform mathematical operations across elements of an array or a matrix. Syntax: apply(x, margin, func) Parameters: x:… Read More
outer() function in R Language is used to apply a function to two arrays.  Syntax: outer(x, y, FUN=”*”, …)Parameters: x, y: arrays FUN: function to use on… Read More