Description Usage Arguments Details Value Author(s) Examples
Count number of samples
1 |
r |
reference class labels with samples in rows. |
groups |
grouping variable for the averaging by |
operator |
the |
hard.operator |
optional: a logical determining whether only hard samples should be counted |
Basically, the reference is summed up. For hard operators, the reference is hardened first: soft
values, i.e. r
in (0, 1) are set to NA.
number of samples in each group (rows) for each class (columns) and all further dimensions of ref.
Claudia Beleites
1 2 3 4 | ref <- softclassval:::ref
ref
nsamples (ref)
nsamples (ref, hard.operator = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.