Export label and level: one variable
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"
#>