Learn R Programming

REDCapCAST (version 25.3.1)

numchar2fct: Applying var2fct across data set

Description

Individual thresholds for character and numeric columns

Usage

numchar2fct(data, numeric.threshold = 6, character.throshold = 6)

Value

data.frame or tibble

Arguments

data

dataset. data.frame or tibble

numeric.threshold

threshold for var2fct for numeric columns. Default is 6.

character.throshold

threshold for var2fct for character columns. Default is 6.

Examples

Run this code
mtcars |> str()
if (FALSE) {
mtcars |>
  numchar2fct(numeric.threshold = 6) |>
  str()
}

Run the code above in your browser using DataLab