Re: [R] Removing elements of a list object

2010-12-23 Thread Eduardo de Oliveira Horta
Thanks! On Thu, Dec 23, 2010 at 3:24 PM, Henrique Dallazuanna 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, thir

Re: [R] Removing elements of a list object

2010-12-23 Thread Henrique Dallazuanna
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,