Convenience functions that create an array full of identical entries.
mZeros(...)
mOnes(...)
mTRUE(...)
mFALSE(...)
mNULL(...)
mZeros(2, 3)
#> [,1] [,2] [,3]
#> [1,] 0 0 0
#> [2,] 0 0 0
mOnes(c(1, 2, 3))
#> , , 1
#>
#> [,1] [,2]
#> [1,] 1 1
#>
#> , , 2
#>
#> [,1] [,2]
#> [1,] 1 1
#>
#> , , 3
#>
#> [,1] [,2]
#> [1,] 1 1
#>
mTRUE(c(1, 3), 2)
#> , , 1
#>
#> [,1] [,2] [,3]
#> [1,] TRUE TRUE TRUE
#>
#> , , 2
#>
#> [,1] [,2] [,3]
#> [1,] TRUE TRUE TRUE
#>
mFALSE(5)
#> [1] FALSE FALSE FALSE FALSE FALSE