zbind {multiplex} | R Documentation |
Combine Arrays
Description
Combine multidimensional arrays.
Usage
zbind(..., sort, force)
Arguments
... |
One or more arrays with two or three dimensions |
sort |
(optional and logical) sort array according to labels? |
force |
(optional and logical) force binding matrices with different order? |
Details
This function is for stacking two-dimensional arrays into a single three-dimensional object to represent a multivariate system structure. Both square and rectangular arrays are supported provided that the dimensions in the input are equal. The dimnames
in the output correspond to the first array in the input, and a Warning message is given when these are NULL.
Value
Usually a three dimensional array
Note
Data frames should be transformed into arrays
Author(s)
Antonio Rivero Ostoic
See Also
Examples
## Create the data: two sets with a pair of binary relations
## among three elements
arr1 <- round( replace( array( runif(18), c(3 ,3, 2) ), array( runif(18),
c(3, 3, 2) ) > .5, 3 ) )
arr2 <- round( replace( array( runif(18), c(3 ,3, 2) ), array( runif(18),
c(3, 3, 2) ) > .5, 3 ) )
## bind the data sets
zbind(arr1, arr2)
[Package multiplex version 3.1.1 Index]