join two or more data frames in system R

前端 未结 1 521
不思量自难忘°
不思量自难忘° 2021-02-12 11:37

My questions is how can join two or more data frames in system R?

For example:

I have two data frames:

first:

   x  y  z
1  3  2  4
2  4  5           


        
相关标签:
1条回答
  • 2021-02-12 12:39

    You have the right idea using rbind(), but it's much more simple. If your data frames are named "first" and "second":

    f <- rbind(first, second)
    

    And f is the new data frame.

    0 讨论(0)
提交回复
热议问题