powered by
Construct a sparse table of ones
sparta_unity_struct(dim_names, rank = 1L)
A sparta object
A named list of discrete levels
The value of each element. Default is 1.
1
s <- sparta_unity_struct(list(a = c("a1", "a2"), b = c("b1", "b2")), rank = 1) mult(s, 2)
Run the code above in your browser using DataLab