Combine Arrays

Description

Combine multidimensional arrays.

Usage

1

Arguments

...

One or more arrays with two or three dimensions

Details

This function represents an extension to both the cbind and the rbind functions, and it is especially useful in constructing a single object to represent a multivariate system structure. Both square and rectangular arrays are supported provided that the dimensions in the input are equal.

Value

Usually a three dimensional array

Note

Data frames should be transformed into arrays

Author(s)

Antonio Rivero Ostoic

See Also

mnplx, dichot, strings

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## 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)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.