Description Usage Arguments Details Value Examples
A function to calculate frequencies of frequencies or the combined frequencies of frequencies of two vectors.
1 | abundances(freqs, freqs0 = NULL)
|
freqs |
A frequency table of data vector |
freqs0 |
A second optional frequency table to be merged to the |
Freqs0
is optional. It is
used in the case of calculating abundances of test data when the frequencies of
the training data are already known. Freqs0
is table(x0)
,where x0
is training
data. Abundances of any kind of data vector x can be calculated with
table(table(x))
.
This function returns a named vector that is used to calculate probabilities and make classifications.
1 2 3 4 5 6 | set.seed(111)
x<-rpois(10,10)
abundances(table(x))
y<-rpois(2,10)
abundances(table(x), table(y))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.