table | R Documentation |
Give the 'TRUE' indices of an lvec
table(...) ## Default S3 method: table(...) which(x, ...) ## Default S3 method: which(x, ...) ## S3 method for class 'lvec' which(x, ...)
... |
not used |
x |
logical |
Returns a numeric lvec with the indices of the elements of x
that are
TRUE.
x <- as_lvec(runif(1E6) > 0.1) which(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.