The base functions
defined for an arbitrary number of arguments and hence have the first
.... Now, when S4 objects are found among the arguments,
rbind() internally “dispatch”
respectively, where these have methods defined and so should dispatch
rbind2() are from the
methods package, i.e., standard R, and have been provided for
binding together two matrices, where in Matrix, we have
defined methods for these and the
1 2 3 4 5 6 7 8 9 10 11 12
## cbind(..., deparse.level = 1) ## rbind(..., deparse.level = 1) ## and e.g., ## S4 method for signature 'denseMatrix,sparseMatrix' cbind2(x,y, sparse = NA, ...) ## S4 method for signature 'sparseMatrix,denseMatrix' cbind2(x,y, sparse = NA, ...) ## S4 method for signature 'denseMatrix,sparseMatrix' rbind2(x,y, sparse = NA, ...) ## S4 method for signature 'sparseMatrix,denseMatrix' rbind2(x,y, sparse = NA, ...)
matrix-like R objects to be bound together, see
integer determining under which circumstances
column and row names are built from the actual arguments'
typically a ‘matrix-like’ object of a similar
class as the first argument in
Note that sometimes by default, the result is a
sparseMatrix if one of the arguments is (even in
the case where this is not efficient). In other cases,
the result is chosen to be sparse when there are more zero entries is
than non-zero ones (as the default
Before R version 3.2.0 (April 2015), we have needed a substitute for
S4-enabled versions of
rBind with identical syntax and
semantic in order to bind together multiple matrices (
"Matrix" and vectors.
With R version 3.2.0 and newer,
deprecated and produce a deprecation warning (via
.Deprecated), and your code should start using
1 2 3 4 5 6 7 8 9
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.