Description Usage Arguments Value
View source: R/resampling_utils.R
Select cases for adding / keeping in data set
1 | select_cases(obs.ind, C.perc, repl, prob = NULL, epsilon = 1e-04)
|
obs.ind |
Named vector of target values |
C.perc |
Percentage of cases to select from obs.ind |
repl |
A Boolean value controlling whether replication is allowed when re-sampling observations. Defaults to FALSE when under-sampling and to TRUE when over-sampling or adding Gaussian noise. |
prob |
Named vector of selection probability. Defaults to NULL. |
epsilon |
Mimimum probability value to add to prob after normalization. |
Vector containing selected observation names
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.