This function calculates the proportion of TRUE
values in a logical
vector.
Arguments
- logical_vec
A logical vector.
- na.rm
Logical. Should missing values be removed before calculation? Behaves similar to
base::mean
, removing missing values from both the numerator and denominator of the proportion calculation.