View source: R/utility_funcs.r
Select indices of rows in x which correspond to values of labels, which can be multiple elements
1 | get_subset_idx(x, labels)
|
x |
vector of labels |
labels |
reference labels to compare to e.g. x <- c("t", "b", "t", "v", "b"); labels <- c("t", "b") get_subset_idx(x, labels) = T, T, T, F, T |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.