| corner | R Documentation | 
Return a corner of a matrix or data frame (i.e., upper left, upper right, lower left, lower right).
corner(x, corner = 1, size = 5)
| x | Data frame or matrix. | 
| corner | Integer in the set  | 
| size | Positive integer, number of rows and columns to return. If there are fewer columns/rows than indicated then all columns/rows are returned. | 
A matrix or data.frame.
side, head, tail
x <- matrix(1:120, ncol=12, nrow=10)
x
corner(x, 1)
corner(x, 2)
corner(x, 3)
corner(x, 4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.