Description Usage Arguments Details Value See Also
Which (in base) converts true/false values to integers, unwhich does the opposite (n corresponds to vector length where true values are assigned to)
1 | unwhich(x,n)
|
x |
Integers that indicate TRUE values |
n |
Boolean list length |
The function first creates n-length list of FALSE values. After this, indices x are replaced with TRUE values.
Boolean list with length n
http://adv-r.had.co.nz/Subsetting.html
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.