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