Learn R Programming

tabxplor (version 1.1.0)

prepare_fct_recode: Prepare fct_recode

Description

Prepare fct_recode

Usage

prepare_fct_recode(
  df_in,
  df_out,
  var,
  mode = c("text", "numbers", "numbers_vector"),
  numbers,
  text
)

Arguments

df_in

The name of the unformatted database

df_out

The name of the database to be formatted.

var

The name of the variable.

mode

"text", "numbers" or "numbers_vector"

numbers

If mode = "numbers", a character vector of length 1 with numbers.

text

The character vector of length 1 with text.

Value

Code to be copied in console.