Skip to content
Prev 30557 / 398521 Next

removing NULL elements from a list

Ramon Diaz wrote:
For a list L:
   L[!sapply(L, is.null)]

Uwe Ligges