Description Usage Arguments Examples
This function will take binary data (a vector filled with zeros and ones) and transform it into two numbers: pos
and ntot
, respectfully depicting the amount of positives and the total amount of individuals.
1 |
data |
The binary data that needs to be summed up. |
1 2 3 4 5 | # Generate binary data
data <- rbinom(10, 1, 0.5)
res <- binom2sumup(data)
res
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.