powered by
Make sure the object is a list
toList(object)
Object to be converted to a list.
If is.list(object) == TRUE, returns the object; otherwise, list(object).
is.list(object) == TRUE
object
list(object)
# NOT RUN { toList(list("a" = 1, "b" = 2)) toList(c("a" = 1, "b" = 2)) # }
Run the code above in your browser using DataLab