corner | R Documentation |
Returns the first part of an object similar to head() but subsets columns as well as rows, and also handles lists of objects.
corner(mat, n = 6)
mat |
A DataFrame, data.frame, GRanges, matrix, tibble, or list |
n |
Integer number of rows and columns you want returned |
An n x n object of the original class (or a list of n nxn objects)
Emily E. Burke
m <- matrix(rnorm(1000), ncol = 10)
corner(m)
lis <- list(iris, mtcars, matrix(rnorm(1000), ncol = 10))
corner(lis)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.