Description Usage Arguments Value
Get hot sample indices from classes.
1 2 | ClassToIdx(cls, onehot, f_reduce = NULL, ret.sorted = FALSE,
fast = TRUE, ...)
|
cls |
a vector of classes. |
onehot |
a onehot table. |
f_reduce |
function to reduce, if NULL, union is performed. |
ret.sorted |
return sorted indices. |
fast |
whether to use faster algorithm when f_reduce is NULL, result is always sorted in this case. |
... |
arguments passed to f_reduce. |
a vector of indices.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.