Description Usage Arguments Value Author(s) See Also Examples
These functions have been written as equivalents of SPSS' MEAN.x
and SUM.x
functions, which only compute means and sums if enough cases have valid values.
1 2 3 4 5 6 7 8 |
... |
Either a dataframe or vectors for which to compute the mean or sum. |
requiredValidValues |
How many values must be valid (i.e. nonmissing) to compute the mean or sum. If a number lower than 1 is provided, it is interpreted as proportion, and the number of variables is computed. For example, if |
returnIfInvalid |
Wat to return for cases that don't have enough valid values. |
silent |
Whether to show the number of cases that have to be valid if |
A numeric vector with the resulting means or sums.
Gjalt-Jorn Peters
Maintainer: Gjalt-Jorn Peters <gjalt-jorn@userfriendlyscience.com>
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.