ss_count_cond | R Documentation |
Computes the number of conditions (provided as a character vectorcond
),
involving the input variables vars
, that were found to be TRUE
.
Options available to exclude certain values from the input variables
(provided as a character vector exclude
).
ss_count_cond(data, name, vars, exclude = NULL, combine = FALSE, cond, max_na)
data |
tbl. Data frame containing the columns to be summarized. |
name |
character. The name of the summary score. |
vars |
character vector. The names of the columns to be summarized. |
exclude |
character (vector). The value(s) to be excluded (Default: NULL; all values are used). |
combine |
logical. Whether to combine the summary score column with the input data frame (Default: FALSE). |
cond |
character vector. Each specified condition, involving the values
of specific input fields, gets tested for |
max_na |
numeric, positive whole number. Number of missing items allowed. |
tbl. The input data frame with the summary score appended as a new column.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.