View source: R/short_functions.R
headl | R Documentation |
Functions to view the top/bottom left/right corners of large matrices or data frames.
headl(x, m = 6L, n = 6L)
headr(x, m = 6L, n = 6L)
taill(x, m = 6L, n = 6L)
tailr(x, m = 6L, n = 6L)
x |
A matrix or data frame. |
m |
The number of rows to view. Default: 6. |
n |
The number of columns to view. Default: 6. |
A matrix of size m
x n
.
mat <- matrix(1:900, 30, 30)
headl(mat)
tailr(mat)
headl(mat, 10, 5)
headl(as.data.frame(mat))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.