The warning gives some suggestions. E.g., replace funs(sum,prod) with
list(sum=sum,prod=prod).
% R CMD Rscript -e 'library(dplyr,warn.conflicts=FALSE);
data.frame(X=1:3,Y=c(11,13,17)) %>% summarize_all(funs(sum,prod))'
X_sum Y_sum X_prod Y_prod
1 641 6 2431
Warning message:
`funs
Hello,
Any of the two will do, the first is now preferred.
library(dplyr)
mtcars %>%
summarise(across(everything(), sum))
mtcars %>%
summarise_all(sum) # no need for `funs()`
Hope this helps,
Rui Barradas
Às 18:29 de 01/10/20, Jeff Reichman escreveu:
r-help Forum
I'm using th
r-help Forum
I'm using the dplyr:: summarize_all(funs(sum)) function and am receiving a
warning message that the `funs()` is deprecated as of dplyr 0.8.0. Ok what
should I be using to summarize all columns by sum?
Jeff
[[alternative HTML version deleted]]
___
It is better to understand the requirements before suggesting a way to do it.
My GUESS is that the questioner wants the circles of different sizes based on
a factor but the natural choices start too high for their needs/taste. So they
want a base size of 0.8 that is either the minimum or maximu
Then please follow the link in the footer. Other recipients can't help you.
> On 1 Oct 2020, at 09:30 , Marte Lilleeng wrote:
>
> I want to unsubscribe from this list.
>
> --
> Mvh Marte Synnøve Lilleeng
> tlf 97 74 38 12
>
> [[alternative HTML version deleted]]
>
> __
I want to unsubscribe from this list.
--
Mvh Marte Synnøve Lilleeng
tlf 97 74 38 12
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE d
6 matches
Mail list logo