Use the data set from and RStudio: https://archive.ics.uci.edu/ml/machine-learni
ID: 3175616 • Letter: U
Question
Use the data set from and RStudio:
https://archive.ics.uci.edu/ml/machine-learning-databases/ wine-quality/winequality-white.csv
Really stuck on part 3
Instructions 1. Use the read.table function to read the file: winequality-white.csv. Read from the Internet. The separator is not a comma, but a semicolon 2. Let us look at the distribution of the wine quality. Use barplot for this. Add proper labeling and title. 3. Create a new variable taste to classify the wines into good, bad, and normal based on their quality. If qualityExplanation / Answer
I will answer you part 3.
winequality is the dataset:
3)
taste=NULL
for(i in 1:nrow(winequality)){
if(winequality$quality[i]<6){
taste[i]="bad"
}
else if(winequality$quality[i]==6){
taste[i]="normal"
}
else if(winequality$quality[i]>6){
taste[i]="good"
}
}
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.