pc_TRUE | R Documentation |
Calculates the percentage of true values in a logical vector, parsed as text.
pc_TRUE(
logical_vector,
percentify = TRUE,
NumberAndPC = FALSE,
NArm = TRUE,
prefix = NULL,
suffix = NULL,
digitz = 3,
...
)
logical_vector |
A logical vector. |
percentify |
Whether to return the percentage as a formatted string (default: TRUE). |
NumberAndPC |
Whether to return the percentage and the number of true values (default: FALSE). |
NArm |
Whether to ignore NA values (default: TRUE). |
prefix |
A prefix to add to the output string (default: NULL). |
suffix |
A suffix to add to the output string (default: NULL). |
digitz |
The number of decimal places to use when formatting the percentage (default: 3). |
... |
Additional arguments to pass to |
A string representing the percentage of true values in the logical vector.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.