I have a list like this:
x = list(a = 1:4, b = 3:10, c = NULL) x #$a #[1] 1 2 3 4 # #$b #[1] 3 4 5 6 7 8 9 10 # #$
x[!sapply(x,is.null)]
This generalizes to any logical statement about the list, just sub in the logic for "is.null".