formattable.logical | R Documentation |
Create a formattable logical vector
## S3 method for class 'logical'
formattable(x, ..., formatter = "ifelse", preproc = NULL, postproc = NULL)
x |
a logical vector. |
... |
arguments to be passed to |
formatter |
formatting function, |
preproc |
pre-processor function that prepares |
postproc |
post-processor function that transforms formatted output for printing. |
a formattable
logical vector.
logi <- c(TRUE, TRUE, FALSE)
flogi <- formattable(logi, "yes", "no")
flogi
!flogi
any(flogi)
all(flogi)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.