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.
Asked on September 28, 2017 in R.
Add Comment