| fputc | R Documentation |
Looks up a character VALUE format by name from the global format library and applies it to the input vector.
fputc(x, format_name, ...)
x |
Character vector of values to format |
format_name |
Character. Name of a registered character format,
or a character vector of format names (same length as |
... |
Additional arguments passed to |
Character vector with formatted labels
# Apply character format by name
fnew("M" = "Male", "F" = "Female", name = "sex")
fputc(c("M", "F"), "sex")
# [1] "Male" "Female"
# Bidirectional: forward direction
fnew_bid(
"A" = "Active",
"I" = "Inactive",
"P" = "Pending",
name = "status"
)
fputc(c("A", "I", "P", "A"), "status")
# [1] "Active" "Inactive" "Pending" "Active"
fclear()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.