corn | R Documentation |
Similar to head()
and tail()
, but returns n
rows/cols
from each side of x
(i.e. the corners of x
).
corn(x, n = 2L)
x |
matrix like object |
n |
number of cols/rows from each corner to return |
x[c(1:n, N-n:N), c(1:n, N-n:N)]
corn(matrix(1:10000, 100))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.