powered by
ones generates a matrix of ones.
ones
ones(n, p = n)
number of rows
number of columns
a matrix filled with ones.
if only n is specified, the resulting matrix will be square.
matrix
# NOT RUN { Id <- ones(3) print(Id) # }
Run the code above in your browser using DataLab