View source: R/helpers_sparta.R
sparta_unity_struct | R Documentation |
Construct a sparse table of ones
sparta_unity_struct(dim_names, rank = 1L)
dim_names |
A named list of discrete levels |
rank |
The value of each element. Default is |
A sparta object
s <- sparta_unity_struct(list(a = c("a1", "a2"), b = c("b1", "b2")), rank = 1) mult(s, 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.