Description Usage Arguments Value Examples
Calculate the classification accuracy at a given phylogenetic level.
1 2 | accuracy(actual, predicted, rank)
confusionTable(actual, predicted, rank)
|
actual |
data.frame with the actual classification hierarchy. |
predicted |
data.frame with the predicted classification hierarchy. |
rank |
rank at which the accuracy should be evaluated. |
The accuracy or a confusion table.
1 2 3 4 5 6 7 8 9 10 11 12 | seq <- readRNAStringSet(system.file("examples/RNA_example.fasta",
package="rRDP"))
### decode the actual classification
actual <- decode_Greengenes(names(seq))
### use RDP to predict the classification
pred <- predict(rdp(), seq)
### calculate accuracy
confusionTable(actual, pred, "genus")
accuracy(actual, pred, "genus")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.