head.morphodata {MorphoTools2}R 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)

[Package MorphoTools2 version 1.0.1.1 Index]