Sum | R Documentation |
Convenience function to sum with NAs removed.
Sum(x, verbose = FALSE)
x |
|
verbose |
|
If x is numeric, then Sum(x)
is equivalent to sum(x,na.rm=TRUE)
. If x is a character vector,
then Sum(x)
returns x[1]. If x is logical, then Sum(x)
is equivalent to any(x,na.rm=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.