powered by
rlist::list.parse
list.parse2(df) list.parse3(df)
x <- data.frame(a=1:3,type=c('A','C','B'), stringsAsFactors = FALSE) list.parse2(x) list.parse3(x)
Run the code above in your browser using DataLab