The arity of a spray object
arity.RdThe arity of a spray object: the number of indices needed to retrieve an entry, or the number of columns in the index matrix.
Examples
(a <- rspray())
#> val
#> 2 1 2 = 8
#> 1 0 1 = 16
#> 2 2 1 = 6
#> 1 1 1 = 5
#> 1 2 1 = 3
#> 2 0 2 = 2
#> 2 1 0 = 5
arity(a)
#> [1] 3