[R] removing NULL elements from a list
Peter Dalgaard BSA
p.dalgaard at biostat.ku.dk
Mon Apr 14 19:07:08 CEST 2003
Peter Dalgaard BSA <p.dalgaard at biostat.ku.dk> writes:
> l <- l[!lapply(l,is.null)]
... sapply, of course, as Brian and Uwe said.
--
O__ ---- Peter Dalgaard Blegdamsvej 3
c/ /'_ --- Dept. of Biostatistics 2200 Cph. N
(*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907
More information about the R-help
mailing list