View source: R/api_converters.R
as_array | R Documentation |
Turn a sparse table into an array
as_array(x) ## S3 method for class 'sparta' as_array(x) ## S3 method for class 'sparta_unity' as_array(x)
x |
sparta object |
An array
as_array
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") ) ) as_array(as_sparta(x))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.