Description Usage Arguments Details Value Author(s) See Also Examples
Display a corner section of a rectangular data set
1 2 3 4 5 6 7 8 9 10 11 12 13 | corner(x, ...)
## S3 method for class 'data.frame'
corner(x, r = 5L, c = 5L, corner = "topleft", ...)
## S3 method for class 'matrix'
corner(x, r = 5L, c = 5L, corner = "topleft", ...)
## S3 method for class 'table'
corner(x, r = 5L, c = 5L, corner = "topleft", ...)
## Default S3 method:
corner(x, r = 5L, ...)
|
x |
The data |
... |
Arguments passed on to other functions |
r |
Number of rows to display |
c |
Number of columns to show |
corner |
Which corner to grab. Possible values are c("topleft", "bottomleft", "topright", "bottomright") |
Grabs a corner of a data set
Display a corner section of a rectangular data set
Displays a corner of a rectangular data set such as a data.frame, martrix or table. If showing the right side or bottom, the order of the data is preserved.
The default method reverts to simply calling head
corner of a rectangular data set such as a data.frame, martrix or table. If showing the right side or bottom, the order of the data is preserved.
... The part of the data set that was requested. The size depends on r and c and the position depends on corner.
Jared P. Lander
head
tail
topleft
topright
bottomleft
bottomright
left
right
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.