Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

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 quality

Explanation / 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"
}
  
}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote