47_combined_head_and_tail: Combined Head and Tail Functions

Description Usage Arguments Value See Also Examples

Description

Combined head and tail functions.

Usage

 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, ...)

Arguments

v

A suitable object.

nh, nt

Integers, the number of head/tail elements/rows.
In matrix-based objects, can also be a vector of length two.
(In which case, the second value applies to the number of columns).

Note that currently, in PartMatrix and SectMatrix objects, nh and nt includes formatted lines.
However, this may change, in the future.

...

Ignored.

Value

Currently, some of the functions return formatted character matrices, however, it's possible this may change in the future.

See Also

ghead.data.frame

Examples

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) )

vectools documentation built on June 7, 2021, 9:08 a.m.