Skip to content

Accessing selected elements of a list

1 message · arun

#
Hi,
You can also use:
jlist[unlist(lapply(jlist,length))>0]
#[[1]]
#[1] 1 0

#[[2]]
#[1] 1 2 3
A.K.