RPubs will retire in June 2027. Your existing documents will stay accessible through December 31, 2031
and Connect Cloud is the recommended home for new publishing. Read the blog post

Recently Published

Milestone #4
Fall 2025 PH251 R for Public Health group project, scenario 1, milestone #4
6.1
Plot
A
Spam vs Ham Classification
This project uses the SpamAssassin corpus to build a Naive Bayes classifier that predicts whether emails are spam or ham. After preprocessing and vectorizing the text, the model is trained and evaluated on a test set. The results highlight the challenges of imbalanced text data while demonstrating the full workflow for building a spam detection model in R.
Quiz 4 opcional
ps4
中文版
日语版
Document