saving . . . saved Assignment has been deleted. Assignment has been hidden .
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


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

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.