head2: Return the First or Last Parts of an Object

View source: R/head2.R

head2R Documentation

Return the First or Last Parts of an Object

Description

Return the First or Last Parts of an Object

Usage

head2(x, n = 6)

Arguments

x

an object

n

an integer vector of length 1 or up to dim(x). Default is 6L. Negative values subtract n to the length or dimension. If only one value is provided but the object has more than one dimension, it will be used for all dimension (the difference with base::head()). If the object is a function, it will return n lines of the source code.

Value

A subsetted object.


salix-d/salix_miscFuns documentation built on Aug. 14, 2024, 7:45 p.m.