count_if | R Documentation |
This function counts the number of TRUE values in a logical vector, with an option to remove missing values.
count_if(x, na_rm = FALSE)
x |
A logical vector. |
na_rm |
Logical flag indicating whether to remove NA values before counting (default is false). |
An integer representing the number of TRUE values in the vector.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.