Adding data to R

I create a script where I did a lot of manipulations with a bunch of data, and I do the same manipulations with another dataset. Both datasets have the same rows, columns, and headers. I would like to be able to combine the two datasets together, where I place dataset A over dataset B. I do not need the headers for dataset B and instead simply merge all the data together, as if they were never really separated first place . Is there an easy way to do this?

+4
source share
2 answers

Yes. Use the rbind() command.

 combineddataset = rbind(dataset1, dataset2) 

Hope this helps.

+17
source

And for completeness, you can also use the rbind.fill function found in the plyr package.

+3
source

All Articles