Sum: Sum with NAs removed

View source: R/Sum.R

SumR Documentation

Sum with NAs removed

Description

Convenience function to sum with NAs removed.

Usage

Sum(x, verbose = FALSE)

Arguments

x
  • object to be summed

verbose
  • flg to print diagnostic info

Details

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)


wStockhausen/wtsUtilities documentation built on March 16, 2024, 10:38 a.m.