Hi All,
I work with Iris dataset.
iris %>% group_by(Species) %>%
summarise_all(.funs = function(x) list(enframe(quantile(x,
probs = c(0.25,0.5,0.75), na.rm = TRUE)))) %>% tidyr::unnest()
Which gives me this warning:
Warning message:
`cols` is now required.
Please use `cols = c(Sepal.Length, Sepal.Width, Petal.Length, Petal.Width)`
So I did it:
iris %>% group_by(Species) %>%
summarise_all(.funs = function(x) list(enframe(quantile(x,
probs = c(0.25,0.5,0.75), na.rm = TRUE))))
%>% tidyr::unnest(cols = c(Sepal.Length, Sepal.Width,
Petal.Length, Petal.Width))
but this resulted in error:
Error: Column names `name`, `value`, `name`, `value`, `name`,
and 1 more must not be duplicated.
What did I do wrong ?