data(acme)
str(ToListSimple(acme))
str(ToListSimple(acme, keepOnly = "cost"))
str(ToListExplicit(acme))
str(ToListExplicit(acme, unname = TRUE))
str(ToListExplicit(acme, unname = TRUE, nameName = "id", childrenName = "descendants"))
Run the code above in your browser using DataLab