rbind.traps {secr} | R Documentation

## Combine traps Objects

### Description

Form a single `traps` object from two or more existing `traps` objects.

### Usage

    ## S3 method for class 'traps':
    rbind(..., renumber = TRUE)

### Arguments

`...` | one or more `traps` objects
`renumber` | logical for whether row names in the new object should be set to the row indices

### Details

An attempt to combine objects will fail if they conflict in their `usage` or `covariates` attributes.

### Value

An object of class `traps` with number of rows equal to the sum of the rows in the input objects.

### Author(s)

Murray Efford murray.efford@otago.ac.nz

### See Also

`traps`, `subset.traps`

### Examples

    ## nested hollow grids
    hollow1 <- make.grid(nx = 8, ny = 8, hollow = TRUE)
    hollow2 <- shift(make.grid(nx = 6, ny = 6, hollow = TRUE),
        c(20, 20))
    nested <- rbind (hollow1, hollow2)
    plot(nested, gridlines = FALSE, lab = TRUE)

[Package secr version 1.3.0 Index]