Combine Vectors, Matrix or Data Frames by Columns in R Language - cbind() Function Last Updated : 01 Jun, 2020 Summarize Comments Improve Suggest changes Share Like Article Like Report cbind() function in R Language is used to combine specified Vector, Matrix or Data Frame by columns. Syntax: cbind(x1, x2, ..., deparse.level = 1) Parameters: x1, x2: vector, matrix, data frames deparse.level: This value determines how the column names generated. The default value of deparse.level is 1. Example 1: Python3 # R program to illustrate # cbind function # Initializing two vectors x <- 2:7 y <- c(2, 5) # Calling cbind() function cbind(x, y) Output: x y [1, ] 2 2 [2, ] 3 5 [3, ] 4 2 [4, ] 5 5 [5, ] 6 2 [6, ] 7 5 Example 2: Python3 # R program to illustrate # cbind function # Initializing a vector x <- 1:5 # Calling cbind() function cbind(x, 4) cbind(x, 5, deparse.level = 0) cbind(x, 6, deparse.level = 2) cbind(x, 4, deparse.level = 6) Output: x [1, ] 1 4 [2, ] 2 4 [3, ] 3 4 [4, ] 4 4 [5, ] 5 4 [, 1] [, 2] [1, ] 1 5 [2, ] 2 5 [3, ] 3 5 [4, ] 4 5 [5, ] 5 5 x 6 [1, ] 1 6 [2, ] 2 6 [3, ] 3 6 [4, ] 4 6 [5, ] 5 6 [, 1] [, 2] [1, ] 1 4 [2, ] 2 4 [3, ] 3 4 [4, ] 4 4 [5, ] 5 4 Comment More infoAdvertise with us Next Article Combine Vectors, Matrix or Data Frames by Columns in R Language - cbind() Function K Kanchan_Ray Follow Improve Article Tags : R Language R DataFrame-Function R Vector-Function R Matrix-Function Similar Reads Combine Vectors, Matrix or Data Frames by Rows in R Language - rbind() Function In this article, we will discuss how we Combine Vectors, Matrices, or Data Frames by Rows in R Programming Language using rbind function. rbind() Function in RWhat is rbind function?The rbind function combines or concatenates data frames or matrices by rows. the rbind stands for row binds it shows t 3 min read Merge Two Data Frames by common Columns in R Programming - merge() Function merge() function in R Language is used to merge two data frames by common columns. Syntax: merge(arg1, arg2, by.x, by.y) Parameters: arg1 and arg2: Data frames to be merged by.x: Common argument of first data frame by.y: Common argument of second data frame Example 1: Python3 1== # R program to merg 1 min read Binding rows and columns of a Data Frame in R - bind_rows() and bind_cols() Function bind_rows() function in R Programming is used to combine rows of two data frames. Syntax: bind_rows(data1, data2, id) Parameter: id: dataframe identifier data1, data2: data frame to combine Example: Combining Rows Python3 1== # R program to illustrate # combine rows # Install dplyr package install.p 2 min read How to Merge DataFrames Based on Multiple Columns in R? In this article, we will discuss how to merge dataframes based on multiple columns in R Programming Language. We can merge two  dataframes based on multiple columns  by using merge() function Syntax: merge(dataframe1, dataframe2, by.x=c('column1', 'column2'...........,'column n'), by.y=c('column1', 2 min read Apply function to each column of matrix in R In this article, we will explore a method to apply the function to each matrix column by using R Programming Language. How to apply the function to each column of the matrix The function 'apply()' is used to apply the function to each column of the matrix. By using these methods provided by R, it is 3 min read Like