[R] summarize_all Function
Jeff Reichman
re|chm@nj @end|ng |rom @bcg|ob@|@net
Fri Oct 2 16:35:47 CEST 2020
Thanks Rui
-----Original Message-----
From: Rui Barradas <ruipbarradas using sapo.pt>
Sent: Thursday, October 1, 2020 1:49 PM
To: reichmanj using sbcglobal.net; r-help using r-project.org
Subject: Re: [R] summarize_all Function
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 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]]
>
> ______________________________________________
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
More information about the R-help
mailing list