Skip to content
Prev 228495 / 398500 Next

How do I get rid of list elements where the value is NULL before applying rbind?

Here is a function I use to return the non-NULL elements of a list:

 delete.NULLs  <-  function (x.list)
{
    x.list[unlist(lapply(x.list, length) != 0)]
}
On Thu, Jul 22, 2010 at 2:22 PM, Ted Byers <r.ted.byers at gmail.com> wrote: