Mastering the Naïve Bayes Classifier in R: From Concept to Real-World Appli