[R] Delete a list component?

Uwe Ligges ligges at statistik.uni-dortmund.de
Fri May 2 19:25:15 CEST 2003


R A F wrote:
> Hi, how do I delete a component from a list?
> 
> For example, aaa <- list(), aaa$a <- 0, aaa$b <- 0.  How do I remove
> aaa$a from aaa so that it's left with aaa$b?
> 
> Thanks very much.


aaa$a <- NULL

Uwe Ligges



More information about the R-help mailing list