Description Usage Arguments Details Value Author(s) See Also Examples
Extension of the functionality of head
and tail
with functions
left
and right
and combinations hereof.
Like head
and tail
returns the top and bottom parts of an
object, left
and right
return the left- and right-most parts of
the object. The functions are primarily oriented toward classes
matrix
, data.frame
, and other matrix-like objects classes but
are generic and may be extended to other classes if sensical.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
x |
The object. |
... |
Arguments passed to other methods. |
n |
A single |
addcolnums |
Logical. Should the column 'fake' numbers be added to the
output as column names?
Default is |
top
and bot
are simply
Usually returns an object of the same class as x
but small and
more compact.
Modified code from head
and tail
and
the corresponding class-specific methods.
Anders Ellern Bilgrau <anders.ellern.bilgrau (at) gmail.com>
Main documentation of head
and tail
1 2 3 4 5 6 7 8 9 10 11 12 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.