R/shortcuts.R
ones.Rd
Create matrix with ones values only
ones(nrow, ncol)
number of rows
number of columns
ones(4, 5)#> [,1] [,2] [,3] [,4] [,5] #> [1,] 1 1 1 1 1 #> [2,] 1 1 1 1 1 #> [3,] 1 1 1 1 1 #> [4,] 1 1 1 1 1