| drug | R Documentation |
synthetically generated dataset of 200 patients includes their age, sodium-to-potassium (Na/K) ratio, and the prescribed drug type.
data(drug)
the drug dataset, as a data frame, contains 200 rows (customers) and 3 columns (variables/features). the 3 variables are:
age: age of patients.
ratio: sodium-to-potassium (Na/K) ratio.
type: the prescribed drug type in three levels (A, B, and C).
Reza Mohammadi (2025). Data Science Foundations and Machine Learning with R: From Data to Decisions. https://book-data-science-r.netlify.app.
bank,
churn_mlc,
churn,
churn_tel,
adult,
risk,
cereal,
advertising,
marketing,
house,
house_price,
red_wines,
white_wines,
insurance,
caravan,
fertilizer,
corona
data(drug)
str(drug)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.