Export label and level: one variable

mk.lev.var(data, vname)

Arguments

data

data

vname

variable to export label and level

Value

if continuous variable - (label, NA), categorical variable - (label, level)

Details

DETAILS

Examples

lapply(names(iris), function(x) { jstable::mk.lev.var(iris, x) })
#> [[1]] #> [1] "Sepal.Length" "numeric" NA #> #> [[2]] #> [1] "Sepal.Width" "numeric" NA #> #> [[3]] #> [1] "Petal.Length" "numeric" NA #> #> [[4]] #> [1] "Petal.Width" "numeric" NA #> #> [[5]] #> v.level #> [1,] "Species" "factor" "setosa" #> [2,] "Species" "factor" "versicolor" #> [3,] "Species" "factor" "virginica" #>