Courses
Tutorials
Practice
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
37.4K+ articles
R Language
3.0K+ articles
R Math-Function
79+ articles
R Matrix-Function
65+ articles
R Object-Function
54+ articles
R DataFrame-Function
54+ articles
R String-Functions
39+ articles
R List-Function
22+ articles
R Factor-Function
12+ articles
R Array-Functions
10+ articles
R Vector-Function
88 posts
Recent Articles
Popular Articles
all.equal() Function in R
Last Updated: 02 June 2022
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 fi...
read more
Picked
R Language
R Functions
R Vector-Function
Find number of months between two dates in R
Last Updated: 07 September 2021
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 = 2020/02/21 Date_2 = 2020/03/21O...
read more
Picked
R Language
R Vector-Function
Dot Product of Vectors in R Programming
Last Updated: 19 April 2025
In mathematics, dot product or commonly referred as the scalar product is an algebraic operation involving the two same-length sequences of numbers and a resultant single ...
read more
R Language
R-Vectors
R Vector-Function
Cross Product of Vectors in R Programming
Last Updated: 25 August 2020
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 by the symbol 'X'. Giv...
read more
R Language
R-Vectors
R Vector-Function
Divide the Data into Groups in R Programming - split() function
Last Updated: 30 June 2020
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 = FALSE)Parameters:x: represents dat...
read more
R Language
R DataFrame-Function
R Vector-Function
Add Leading Zeros to the Elements of a Vector in R Programming - Using paste0() and sprintf() Function
Last Updated: 01 June 2021
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 argument. Syntax: paste0("0", vec) or spri...
read more
R Language
R Vector-Function
Generate Color Vectors of desired Length in R Programming - rainbow() Function
Last Updated: 30 June 2020
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 the parameter and returns the ...
read more
R Language
R Functions
R Vector-Function
Get the Sign of Elements of a Numeric Vector in R Programming - sign() Function
Last Updated: 25 June 2020
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 on complex vectors. Syntax: sign(x)Para...
read more
R Language
R Vector-Function
Get or Set the Structure of a Vector in R Programming - structure() Function
Last Updated: 25 June 2020
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: Vector dim: New Di...
read more
R Language
R Vector-Function
Get a List of Numbers in the Specified Range in R Programming - seq.int() Function
Last Updated: 25 June 2020
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 fromto: specified...
read more
R Language
R Vector-Function
Generate Data sets of same Random Values in R Programming - set.seed() Function
Last Updated: 30 April 2025
The set.seed() function in R ensures that random number generation is consistent across different sessions, allowing for identical results each time the code is executed. ...
read more
R Language
R Vector-Function
Generate a Sequence of Length of the passed Argument in R Programming - seq_along() Function
Last Updated: 24 June 2020
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 argumentsExample 1:...
read more
R Language
R Vector-Function
Generate a Sequence from 1 to any Specified Number in R Programming - seq_len() Function
Last Updated: 24 June 2020
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 numberExample 1:[sourcecode langua...
read more
R Language
R Vector-Function
Replicating a Value specified number of times in R Programming - rep.int() Function
Last Updated: 24 June 2020
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 valuetimes: specified...
read more
R Language
R Vector-Function
Replicating a Value to the Specified Length in R Programming - rep_len() Function
Last Updated: 24 June 2020
rep_len() function in R Language is used to replicate a given value in the specified length.Syntax: rep_len(x, length.out)Parameters:x: specified valuelength.out: specifie...
read more
R Language
R Vector-Function
1
2
3
4
5
6
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !