Description Usage Arguments Value See Also Examples
Combined head and tail functions.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ## S3 method for class 'ObjectArray'
headt(v, nh=3, nt=nh, ...)
## S3 method for class 'MatrixLike'
headt(v, nh=3, nt=nh, ...)
## S3 method for class 'data.frame'
headt(v, nh=3, nt=nh, ...)
## S3 method for class 'matrix'
headt(v, nh=3, nt=nh, ...)
## S3 method for class 'raster'
headt(v, nh=3, nt=nh, ...)
## Default S3 method:
headt(v, nh=3, nt=nh, ...)
|
v |
A suitable object. |
nh, nt |
Integers, the number of head/tail elements/rows. |
... |
Ignored. |
Currently, some of the functions return formatted character matrices, however, it's possible this may change in the future.
ghead.data.frame
1 2 3 4 5 6 7 | x <- matrix (1:2700, 30, 90)
rsep <- seq (3, 27, 3)
csep <- seq (3, 87, 3)
pm <- as.PartMatrix (x, rsep, csep)
headt (pm, 10, c (5, 1) )
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.