table_size {sparta} | R Documentation |
Number of elements in a table
Description
Number of elements in a table
Usage
table_size(x)
## S3 method for class 'sparta'
table_size(x)
Arguments
x |
sparta |
Value
The size of the sparta table x
Examples
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")
)
)
sx <- as_sparta(x)
table_size(sx)
[Package sparta version 0.8.4 Index]