saving . . . saved Assignment has been deleted. Assignment has been hidden .
Assignment
Title
Question
Not able to find the mean of sepal length and sepal width.

Following output is obtained .

 iris %>% group_by(Species) %>% summarise(mean(Sepal.Length) %>% summarise(mean(Sepal.Width))

R Pipe-Operator 11-12 min 20-30 sec 11-12-20, 3:44 p.m. Joohi

Answers:

You should use the commands, as given below:

iris %>% group_by(Species) %>% summarise(mean(Sepal.Length))

iris %>% group_by(Species) %>% summarise(mean(Sepal.Width))

Please note that these are two separate commands. You will require to run these two queries, one by one, to know the desired mean value. 


11-12-20, 7:44 p.m. sudhakarst


thanks
14-12-20, 2:26 p.m. Joohi


When I run library(ggplot2) and library(dplyr) then only it is identifying %>%.How do we come to know which library is required for which command  ?
14-12-20, 2:28 p.m. Joohi


Log-in to answer to this question.