在R中附加数据 [英] Appending data in R

查看:123
本文介绍了在R中附加数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在制作一个脚本,我已经对一堆数据进行了许多操作,我对另一个数据集进行了相同的操作。两个数据集具有相同的行,列和标题。我想能够加入两个数据集在一起,我将数据集A放在数据集B上面。我不需要数据集B的头,而是将所有数据聚集在一起,好像它们从未真正分开第一名。有没有办法做到这一点?

解决方案

是的。使用 rbind()命令。

  combineddataset = rbind(dataset1,dataset2 )

希望有所帮助。


I am producing a script where I have done many manipulations to a bunch of data and, I do these same manipulations to another dataset. Both data sets have the same rows, columns, and headers. I would like to be able to join the two data sets together where I place dataset A above dataset B. I wouldn't need to headers for dataset B and would instead just clump all of the data together as if they were never really separated in the first place. Is there a simply way to do this?

解决方案

Yes. Use rbind() command.

combineddataset = rbind(dataset1, dataset2)

Hope that helps.

这篇关于在R中附加数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆