Commit 14729a84 by Arham Akheel

Updated Comments

parent 505532ef
...@@ -109,7 +109,6 @@ wine$country = ifelse(wine$designation == "Piedra Feliz", "Chile", wine$country) ...@@ -109,7 +109,6 @@ wine$country = ifelse(wine$designation == "Piedra Feliz", "Chile", wine$country)
wine$country = ifelse(wine$variety == "Red Blend", "Turkey", wine$country) wine$country = ifelse(wine$variety == "Red Blend", "Turkey", wine$country)
#Combining Datasets #Combining Datasets
#Creating a new subset by total number of rows by country #Creating a new subset by total number of rows by country
newwine = wine %>% group_by(country) %>% summarize(total = n()) %>% arrange(desc(total)) newwine = wine %>% group_by(country) %>% summarize(total = n()) %>% arrange(desc(total))
...@@ -132,3 +131,6 @@ left ...@@ -132,3 +131,6 @@ left
#Combining two data frames using right join function #Combining two data frames using right join function
right = right_join(subset1, subset2) right = right_join(subset1, subset2)
right right
#####End of Code####
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment