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