powered by
Create a formattable logical vector
# S3 method for logical formattable(x, ..., formatter = "ifelse", preproc = NULL, postproc = NULL)
a logical vector.
arguments to be passed to formatter.
formatter
formatting function, formattable::ifelse in default.
formattable::ifelse
pre-processor function that prepares x for formatting function.
x
post-processor function that transforms formatted output for printing.
a formattable logical vector.
formattable
# NOT RUN { logi <- c(TRUE, TRUE, FALSE) flogi <- formattable(logi, "yes", "no") flogi !flogi any(flogi) all(flogi) # }
Run the code above in your browser using DataLab