| im_ref | R Documentation |
Create an ideal reference matrix of well-seriated values of the same size as the input matrix.
im_ref(obj)
## S3 method for class 'matrix'
im_ref(obj)
obj |
A matrix of size |
A matrix of size n \times k with 1s along the diagonal. If n > k, 1s are placed from cell (i,i) to (i,i+k-n), with 0 in all other cells.
im_ref(matrix(NA, 5, 5))
im_ref(matrix(1, 7, 12))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.