View source: R/encode_decode.R
decode | R Documentation |
The decode()
function decodes selected variables in a data frame. It converts the variables to character type, sets labels from the original data, and returns the modified data frame.
decode(.data, ...)
.data |
The input data frame. |
... |
The variables to be decoded. |
A modified data frame with the selected variables decoded.
# Decode selected variables in the `mtcars` data frame
decode(mtcars, mpg, cyl)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.