InterviewSolution
Saved Bookmarks
| 1. |
What is cbind and rbind in R? |
|
Answer» Cbind in R is a function that stands for column-BIND. It is used for COMBINING vectors, matrices, and data frames by columns. Syntax:cbind(data_input, new_column) On the other hand, Rbind is a function in R that stands for row binds. It is used to bind the data frames by doing a simple joining or concatenation of TWO or more TABLES row-wise. Syntax:rbind(y1,y2) |
|