
Fast pattern
fast.pattern(x, y, categories = 2, ...)
Matrix (binary) of patterns. Optionally if y
is
also passed as argument, then the pattern matrix is defined as the
elements agreeing in the two matrices.
Optional matrix argument with same dimensions as x
(see above)
Default 2 (binary)
Optional additional arguments
Klaus K. Holst
X <- matrix(rbinom(100,1,0.5),ncol=4)
fast.pattern(X)
X <- matrix(rbinom(100,3,0.5),ncol=4)
fast.pattern(X,categories=4)
Run the code above in your browser using DataLab