Finding the consensus classification using anonymous functions (CC284)
With 100 classification strings, we now need to find the consensus classification across those bootstrapped replicates. We’ll make use of anonymous functions with the base R lapply and sapply functions. Of course we’ll also make use of test driven development using the testthat package.This episode is part of an ongoing effort to develop an R package that implements the naive Bayesian classifier.
Code
You can browse the state of the repository at the