powered by
This functions are similar to rlist::list.parse but this removes names. NAs are removed for compatibility with rjson::toJSON.
rlist::list.parse
NA
list_parse(df)list_parse2(df)
list_parse2(df)
A data frame to parse to list
# NOT RUN { 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