head.morphodata: Return the First or Last Parts of an Object

View source: R/print.R

head.morphodataR Documentation

Return the First or Last Parts of an Object

Description

Returns the first or last parts of a object.

Usage

## S3 method for class 'classifdata'
head(x, n = 6, ...)

## S3 method for class 'classifdata'
tail(x, n = 6, ...)

## S3 method for class 'morphodata'
head(x, n = 6, ...)

## S3 method for class 'morphodata'
tail(x, n = 6, ...)

Arguments

x

an object of class morphodata or classifdata.

n

number of rows to print.

...

arguments to be passed to or from other methods.

Details

Object passed as parameter is formated to data.frame. A head() (tail()) returns the first (last) n rows when n >= 0 or all but the last (first) n rows when n < 0.

Value

A data.frame, containing the first or last n individuals of the passed object.

Examples

data(centaurea)

head(centaurea)
tail(centaurea)

MorphoTools2 documentation built on March 7, 2023, 6:18 p.m.