Suppose, $c(1, 2, 3, 4)$ and $c(2, 4, 5, 6)$ are two vectors. Then in R or RStudio,
How to create a $4\times 2$ matrix from these two vectors?
how to add another vector $c(8, 9, 10, 11)$ as a column to the previous matrix?
Data Science Stack Exchange is a question and answer site for Data science professionals, Machine Learning specialists, and those interested in learning more about the field. It only takes a minute to sign up.Sign up to join this community