Create matrix with ones values only

ones(nrow, ncol)

Arguments

nrow

number of rows

ncol

number of columns

Examples

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