ht: Print head-tail

Description Usage Arguments Details Examples

View source: R/ht.R

Description

Print head-tail

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
ht(x, ...)

## S3 method for class 'data.frame'
ht(x, n = 5)

## Default S3 method:
ht(x, n = 5)

## S3 method for class 'list'
ht(x, n = 5)

Arguments

x

an R object.

n

an integer indicating the number of first and last rows to be printed. The default value is 5.

Details

The objects containing class of data.frame will call C implementation and the other implementations calls R functions.

The call cannot be assigned to any variable, and the result will be NULL (empty) if it is done it so.

Examples

1
2
3
4
5
6
## data.frame:
ht(mtcars)
## vector (default):
ht(LETTERS, n = 10)
## list:
ht(as.list(letters))

strboul/mmy documentation built on Sept. 24, 2021, 12:08 p.m.