powered by
Give the `TRUE` indices of an lvec
table(...)# S3 method for default table(...)which(x, ...)# S3 method for default which(x, ...)# S3 method for lvec which(x, ...)
# S3 method for default table(...)
which(x, ...)
# S3 method for default which(x, ...)
# S3 method for lvec which(x, ...)
not used
logical lvec to get the indices from
lvec
Returns a numeric lvec with the indices of the elements of x that are TRUE.
x
# NOT RUN { x <- as_lvec(runif(1E6) > 0.1) which(x) # }
Run the code above in your browser using DataLab