abind | R Documentation |
abind
binds two conformable arrays along a dimension.
abind(arr1, arr2, d, facename = "")
arr1 |
first array |
arr2 |
second array |
d |
dimension along which arr1 and arr2 are joined, or, if the
|
facename |
Name for the new array dimension |
Warning: abind::abind should be preferred to spida2::abind.
dim( arr1 ) and dim( arr2 ) must be equal except in the dth dimension. If the length of dim( arr2 ) is 1 less than that of dim( arr1 ), then 'arr2' is treated as if it had dropped the dth dimension with size 1.
If length(dim(arr2)) == length(dim(arr1)) - 1, then arr2 is treated as if it dropped a dimension of size 1 in the dth dimension. 'facename' is used as the name of the dimnames list for this dimension.
The returned value, ret, is an array with dimension dim(arr1) except for the dth dimension where dim(ret)d == dim(arr1)d + dim(arr2)d.
Georges Monette
aperm
, to permute arrays
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.