[R] Averaging without NAs
ulrik.stervbo at gmail.com
Thu Mar 2 12:09:20 CET 2017
in particular the na.rm argument.
On Thu, 2 Mar 2017 at 11:55 ch.elahe via R-help <r-help at r-project.org>
> Hi all,
> The question seems easy but I could not find an answer for it. I have the
> following column in my data frame and I want to take average of the column
> excluding the number of NAs.
> $X2016.Q1 : int 47 53 75 97 NA NA 23 NA 43 NA ....
> Does anyone know how to do that?
> Thanks for any help
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> PLEASE do read the posting guide
> and provide commented, minimal, self-contained, reproducible code.
[[alternative HTML version deleted]]
More information about the R-help