side | R Documentation |
This function extracts the leftmost or rightmost set of columns of a data frame or matrix.
side(x, side = 1, n = 3)
x |
A |
side |
Either 1 (left side) or 2 (right side), or |
n |
Number of columns. The default is 3. |
A data.frame
or matrix
.
corner
, head
, tail
side(iris)
side(iris, 2)
side(iris, 'l')
side(iris, 'r')
side(iris, 1, 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.