Learn R Programming

thinkr (version 0.16)

dput_levels: return R instruction to create levels

Description

return R instruction to create levels

Usage

dput_levels(vec)

Value

a R instruction

Arguments

vec

a factor or character vector

Examples

Run this code
dput_levels(iris$Species)

Run the code above in your browser using DataLab