head2: Return the first and last part of a matrix or dataframe

Description Usage Arguments Value Author(s) Examples

View source: R/head2.R

Description

Returns the first and last rows using output from both head and tail and separates the two parts with dots. Useful for viewing ordered datasets such as longitudinal census data.

Usage

1
head2(x, head = 3, tail = 1, dotrows = 1)

Arguments

x

A matrix or dataframe

head

The number of first rows

tail

The number of last rows

dotrows

The number of rows of dots

Value

A smaller object like x with first and last rows only

Author(s)

Chris Stubben

Examples

1
2

popbio documentation built on May 4, 2018, 1:04 a.m.