RE: What happens when a data sequence that is too short is used to fill up a matrix in R?

What happens when a data sequence that is too short is used to fill up a matrix in R?

  1. R will produce an error.
  2. R will fill up the matrix column by column and repeat the data sequence.
  3. R will fill up a smaller matrix with only the specified data sequence in it.
  4. R will fill up the matrix with “NA” values.
Kiran Patil Asked on September 28, 2017 in R.
Add Comment
1 Answers

when a data sequence that is too short is used to fill up a matrix then R will fill up the matrix column by column and repeat the data sequence.

Answered on September 28, 2017.
Add Comment

Your Answer

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