R/cbind.mvabund.R

Defines functions cbind.mvabund

Documented in cbind.mvabund

###############################################################################
## cbind.mvabund: combine two or more mvabund object columnwise to another 	  #
## mvabund object											                                        #
###############################################################################
cbind.mvabund <- function(..., deparse.level = 1) {
objects <- list(...)

objects <- lapply(objects, function(x) {
       unabund(x)
    })

mcbind <-  do.call( "cbind", c(objects ,deparse.level=deparse.level))

return(as.mvabund(mcbind))

}

Try the mvabund package in your browser

Any scripts or data that you put into this service are public.

mvabund documentation built on March 18, 2022, 7:25 p.m.