Mac, LATEX, HTML, Statistics, and Programing.
matrix(data=NA, nrow=3, ncol=5) can create/initiate a 3 × 5 NA matrix on the fly. Of course, matrix(data=0, nrow=3, ncol=5) may be useful in case.
matrix(data=NA, nrow=3, ncol=5)
matrix(data=0, nrow=3, ncol=5)