rbind.popn: Combine popn Objects

Description Usage Arguments Details Value See Also Examples

Description

Form a single popn object from two or more existing popn objects, or a list.

Usage

1
rbind.popn(..., renumber = TRUE)

Arguments

...

one or more popn objects, or a single list of popn 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 covariates attributes. This is not an S3 method.

Value

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

See Also

popn

Examples

1
2
3
4
5
6
7
## generate and combine two subpopulations
trapobj <- make.grid()
p1 <- sim.popn(D = 3, core = trapobj)
p2 <- sim.popn(D = 2, core = trapobj)
covariates(p1) <- data.frame(size = rep("small", nrow(p1)))
covariates(p2) <- data.frame(size = rep("large", nrow(p2)))
pop <- rbind.popn(p1,p2)


Search within the secr package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.