decode: Decode variables in a data frame

View source: R/encode_decode.R

decodeR Documentation

Decode variables in a data frame

Description

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.

Usage

decode(.data, ...)

Arguments

.data

The input data frame.

...

The variables to be decoded.

Value

A modified data frame with the selected variables decoded.

Examples

# Decode selected variables in the `mtcars` data frame
decode(mtcars, mpg, cyl)


myominnoo/mStats documentation built on Nov. 29, 2023, 2:36 a.m.