fillList | R Documentation |
Loop through list, get unique names and make sure every element has those names
fillList(x, namesList = unique(unlist(lapply(x, names))), fill = NA)
x |
list to loop through |
namesList |
names to make sure every element has (and delete extras) |
fill |
value to insert in missing elements |
list with missing elements filled in and elements not in namesList removed
fillList(list(c('a'=1,'b'=2),c('c'=3))) fillList(list(c('a'=1,'b'=2),c('c'=3)),namesList='a')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.