View source: R/helpers_sparta.R
equiv | R Documentation |
Determine if two sparta objects are equivalent
equiv(x, y) ## S3 method for class 'sparta' equiv(x, y)
x |
sparta object |
y |
sparta object |
Logical. TRUE
if x
and y
are equivalent
x <- array( c(1,0,0,2,3,4,0,0), dim = c(2,2,2), dimnames = list( a = c("a1", "a2"), b = c("b1", "b2"), c = c("c1", "c2") ) ) y <- array( c(2,0,0,2,3,4,0,0), dim = c(2,2,2), dimnames = list( a = c("a1", "a2"), b = c("b1", "b2"), c = c("c1", "c2") ) ) sx <- as_sparta(x) sy <- as_sparta(y) equiv(sx, sy) equiv(sx, sx)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.