head

0th

Percentile

First or Last Part of an Object

Returns the first or last parts of secr objects

Keywords
manip
Usage
# S3 method for mask
head(x, n=6L, ...)
# S3 method for Dsurface
head(x, n=6L, ...)
# S3 method for traps
head(x, n=6L, ...)
# S3 method for capthist
head(x, n=6L, ...)
# S3 method for mask
tail(x, n=6L, ...)
# S3 method for Dsurface
tail(x, n=6L, ...)
# S3 method for traps
tail(x, n=6L, ...)
# S3 method for capthist
tail(x, n=6L, ...)
Arguments
x

`mask', `traps' or `capthist' object

n

a single integer. If positive, size for the resulting object: number of elements for a vector (including lists), rows for a matrix or data frame or lines for a function. If negative, all but the n last/first number of elements of x.

other arguments passed to subset

Details

These custom S3 methods retain the class of the target object, unlike the default methods applied to `mask', `Dsurface', `traps' or `capthist' objects.

Value

An object of the same class as x, but (usually) fewer rows.

See Also

head, tail

Aliases
  • head.mask
  • head.Dsurface
  • head.traps
  • head.capthist
  • tail.mask
  • tail.Dsurface
  • tail.traps
  • tail.capthist
Examples
# NOT RUN {
head(possummask)
# }
Documentation reproduced from package secr, version 4.3.3, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.