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.
bank, churn, churnCredit, churnTel, adult, risk, cereal, advertising, marketing, house, housePrice, redWines, whiteWines, insurance, caravan, fertilizer, corona
bank
churn
churnCredit
churnTel
adult
risk
cereal
advertising
marketing
house
housePrice
redWines
whiteWines
insurance
caravan
fertilizer
corona
data(drug) str(drug)
Run the code above in your browser using DataLab