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
Tag Archives: R Array-Functions
as.logical() function in R Language is used to convert an object to a logical vector. Syntax: as.logical(x)Parameters: x: Numeric or character object R – as.logical() Function… 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 Programming Language is used to find the elements which are in the first Object but not in the second Object. Syntax:… 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 Programming Language is used to apply a function to two arrays. Syntax: outer(x, y, FUN=”*”, …) Parameters: x, y: arrays FUN:… Read More