jam_rapply | R Documentation |
Jam-specific recursive apply
jam_rapply(x, FUN, how = c("unlist", "list"), ...)
x |
|
FUN |
|
how |
|
... |
additional arguments are passed to |
This function is a very lightweight customization to base::rapply()
,
specifically that it does not remove NULL
entries.
Other jam list functions:
cPasteSU()
,
cPasteS()
,
cPasteUnique()
,
cPasteU()
,
cPaste()
,
heads()
,
list2df()
,
mergeAllXY()
,
mixedSorts()
,
rbindList()
,
relist_named()
,
rlengths()
,
sclass()
,
sdim()
,
uniques()
,
unnestList()
L <- list(entryA=c("miR-112", "miR-12", "miR-112"),
entryB=factor(c("A","B","A","B"),
levels=c("B","A")),
entryC=factor(c("C","A","B","B","C"),
levels=c("A","B","C")),
entryNULL=NULL)
rapply(L, length)
jam_rapply(L, length)
L0 <- list(A=1:3, B=list(C=1:3, D=4:5, E=NULL));
rapply(L0, length)
jam_rapply(L0, length)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.