Export label and level: one variable
mk.lev.var(data, vname)
data | data |
---|---|
vname | variable to export label and level |
if continuous variable - (label, NA), categorical variable - (label, level)
DETAILS
#> [[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" #>