Thanks! On Thu, Dec 23, 2010 at 3:24 PM, Henrique Dallazuanna <www...@gmail.com>wrote:
> Try this: > > x$second <- NULL > > > On Thu, Dec 23, 2010 at 3:21 PM, Eduardo de Oliveira Horta < > eduardo.oliveiraho...@gmail.com> wrote: > >> Hello, >> >> say I have an object >> >> > x = list(first = 10, second = 20, third = "Yeah!") >> >> and want to remove the $second element of that list. My first try was, of >> course, >> >> > rm(x$second) >> >> which gave me the following error message >> >> > Error in rm(x$second) : ... must contain names or character strings >> >> Any ideas here, folks? >> >> Best regards, and Merry Christmas! >> >> Eduardo Horta >> >> [[alternative HTML version deleted]] >> >> ______________________________________________ >> R-help@r-project.org mailing list >> https://stat.ethz.ch/mailman/listinfo/r-help >> PLEASE do read the posting guide >> http://www.R-project.org/posting-guide.html >> and provide commented, minimal, self-contained, reproducible code. >> > > > > -- > Henrique Dallazuanna > Curitiba-Paraná-Brasil > 25° 25' 40" S 49° 16' 22" O > [[alternative HTML version deleted]]
______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.