Best way to allocate matrix in R, NULL vs NA?

后端 未结 3 1350
深忆病人
深忆病人 2020-12-24 11:31

I am writing R code to create a square matrix. So my approach is:

  1. Allocate a matrix of the correct size
  2. Loop through each element of my matrix and fil
3条回答
提交回复
热议问题