# Tag Archives: R Vector-Function

all.equal() Function in R Programming Language is used to test whether the given vectors are nearly equal or not. Syntax: all.equal(vector1,vector2)  where, vector1 is theโฆ Read More
In this article, we will discuss how to Find the number of months between two dates in the R programming language.  Example: Input: Date_1 =โฆ Read More
In mathematics, the dot product or also known as the scalar product is an algebraic operation that takes two equal-length sequences of numbers and returnsโฆ Read More
In mathematics, the cross product or also known as the vector product is a binary operation on two vectors in three-dimensional space and is denotedโฆ Read More
split() function in R Language is used to divide a data vector into groups as defined by the factor provided. Syntax: split(x, f, drop =โฆ Read More
paste0() and sprintf() functions in R Language can also be used to add leading zeros to each element of a vector passed to it asโฆ Read More
rainbow() function in R Language is a built in color palettes which can be used to quickly generate color vectors of desired length taken asโฆ Read More
sign() function in R Language is used to find the sign of the elements of the numeric vector provided as argument. It does not workโฆ Read More
structure() function in R Language is used to get or set the structure of a vector by changing its dimensions. Syntax: structure(vec, dim) Parameters: vec:โฆ Read More
seq.int() function in R Language is used to return a list of numbers in the specified range. Syntax: seq.int(from, to, by) Parameters: from: specified rangeโฆ Read More
set.seed() function in R Language is used to create random numbers which can be reproduced. It helps in creating same random numbers each time aโฆ Read More
na.omit() function in R Language is used to omit all unnecessary cases from data frame, matrix or vector. Syntax: na.omit(data) Parameter: data: Set of specifiedโฆ Read More
seq_along() function in R Language is used to generate a sequence of the same length of the argument passed. Syntax: seq_along(x) Parameters: x: specified argumentsโฆ Read More
seq_len() function in R Language is used to generate a sequence from 1 to the specified number. Syntax: seq_len(x) Parameters: x: specified number Example 1:โฆ Read More
rep.int() function in R Language is used to replicate a given value into a specified number of times. Syntax: rep.int(x, times) Parameters: x: specified valueโฆ Read More