ht: Returns the head and tail part of an object

Description Usage Arguments Value Author(s) See Also Examples

Description

Returns the head and tail part of an object

Usage

1
ht(x, n = 6, ...)

Arguments

x

an object.

n

integer If positive, size for the resulting object: number of elements for a vector (including lists), rows for a matrix or data frame or lines for a function. If negative, all but the 'n' last/first number of elements of 'x'

...

arguments to head and tail

Value

character

Author(s)

Thomas P. Harte

See Also

head, tail

Examples

1
2
3
4
5
6
 N<- 20
 df<- data.frame(Name=letters[1:N], Value=1:N)
 ht(df)
 N<- 3
 df<- data.frame(Name=letters[1:N], Value=1:N)
 ht(df)

tharte/tutils documentation built on Feb. 11, 2020, 9:17 a.m.