# Combine Two or Multiple Vectors in R

To append two or more vectors into a single list or combine multiple vectors in R, you can use either the combine function c() or append() function. In this article,…

# R Apply Function to Vector

How to apply a function to each element of R Vector? R Programming provides several functions to apply or call a function to each element of a vector, for example,…

# R Count Frequency of All Unique Values in Vector

There are multiple ways to get the count of the frequency of all unique values in an R vector. To count the number of times each element or value is…

# R Remove From Vector with Examples

How to remove elements from vector in R? By using r base [] notation and setdiff() function is used to remove values from vector. Actually by using [] notation we…

# R Remove Duplicates From Vector

How to remove duplicate values (duplicates) from vector in R? Handling duplicate values is one of the challenging tasks when analyzing the data. Removing duplicates comes under data cleaning which…

# Sort Vector in R – Character, Date, Numeric

Use the sort() function to sort vector elements in R by ascending or descending order. This sort() function takes an R vector as an argument and results in the sorted…

# How to Subset Vector in R?

Use R base bracket notation to subset the vector in R. By using this notation we can subset the vector by index, name, value, by checking the condition, by range…

# Merge Vector Elements into String in R

There are multiple ways to concatenate or merge elements of the vector into a string in R either by separating with space or any delimiter. Use the paste() function to…

# How to Concatenate Vector in R

To concatenate a vector or multiple vectors in R use c() function. This c() function is used to combine the objects by taking two or multiple vectors as input and…

# unlist() Function in R – Usage with Examples

unlist() function in R takes a list as an argument and returns a vector. A list in R contains heterogeneous elements meaning can contain elements of different types whereas a vector…