Description Usage Arguments Details Value Examples
Given a matrix of observations, residuals or slope coefficients, retrieve the
number of variables K
.
1 | var_length(mat)
|
mat |
|
At the moment, this function is just an aptly / intentionally named wrapper of
nrow(mat)
.
An integer scalar. The number of variables K
.
1 2 3 4 5 6 7 8 9 | p <- 3
K <- 4
var_length(matrix(0, K, K * p)) == K
## Not run:
var_length(1:K)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.