Append\Union two or several tables into one

qqqwww picture qqqwww · Apr 26, 2016 · Viewed 18.7k times · Source

I input 5 text data sets into R using read.table. Each data set has the same structure (100 rows, 50 cols). I would like to union\append all the five tables together into one table, which will be 500 rows * 50 cols. Anyone know how to do that?

Answer

Raphael K picture Raphael K · Apr 26, 2016

From package dplyr:

install.packages('dplyr')
library(dplyr)
new_df <- bind_rows(table1, table2, table3, table4, table5)