View source: R/logical_to_str.R
logical_to_str | R Documentation |
Converts a logical variable into a string representation.
logical_to_str(lgl, case = NULL)
lgl |
The logical (boolean) value to be converted to a string. |
case |
Case of the output ("title", "lower" or "upper"). |
The logical value as a string, i.e. "yes" or "no", formatted
according to the specified case
option.
logical_to_str(FALSE) # => "No" logical_to_str(TRUE, case = "upper") # => "YES" logical_to_str(FALSE, case = "lower") # => "no"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.