powered by
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:
drug
age: age of patients.
age
ratio: sodium-to-potassium (Na/K) ratio.
ratio
type: the prescribed drug type in three levels (A, B, and C).
type
Reza Mohammadi (2025). Data Science Foundations and Machine Learning with R: From Data to Decisions. https://book-data-science-r.netlify.app.
adult, risk, churn, churnTel, bank, advertising, marketing, cereal, housePrice, house
adult
risk
churn
churnTel
bank
advertising
marketing
cereal
housePrice
house
data(drug) str(drug)
Run the code above in your browser using DataLab