RE: What are the two advantages of using the function cbind() and rbind() over the function matrix() when creating matrices?

What are the two advantages of using the function cbind() and rbind() over the function matrix() when creating matrices?

  1. You don’t need to pass it an input vector explicitly that is then converted to a matrix.
  2. You can put different vector types inside a matrix with cbind() and rbind().
  3. You don’t have to explicitly state the way in which the matrix has to be filled.
  4. You don’t need to pass parameters to either function.
Kiran Patil Asked on September 28, 2017 in R.
Add Comment
1 Answers

Advantages of using the function cbind() and rbind() over the function matrix() is

  1. You don’t need to pass it an input vector explicitly that is then converted to a matrix¬† and
  2. You don’t have to explicitly state the way in which the matrix has to be filled.
Answered on September 28, 2017.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.