Description Usage Arguments Value Examples
Return the sum of 'x'. If no observations, return 'NA'. This is a workaround for the fact that in data.table, ':= sum()' will return 'NaN' where there are no observations
1 | sum_na(x)
|
x |
data potentially with non-finite values |
Sum of the input
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.