Unlist | R Documentation |
Allows unlisting preserving the top levels of a list. Can specify the number of list depth levels to skip before running unlist()
Unlist(obj, depth = 1)
obj |
the list to unlist |
depth |
skip to what layer of the list before unlisting; eg. the base unlist() function would correspond to depth=0 |
returns vectors of strings of char, lengths X
Nicholas Cooper njcooper@gmx.co.uk
complex.list <- list(1,1:3,list(2,2:4,list(3,3:4,list(10))),list(4,5:7,list(3))) Unlist(complex.list,0) # equivalent to unlist() Unlist(complex.list,1) # unlist within the top level lists Unlist(complex.list,2) # unlist within the second level lists Unlist(complex.list,10) # once depth >= list-depth, no difference unlist(complex.list,recursive=FALSE) # not the same as any of the above
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.