Re: [R] list names

2010-03-18 Thread David Winsemius
On Mar 18, 2010, at 1:12 PM, Robert M. Flight wrote: So I have a list variable, and each item has a name. Is it possible to return just the names in the list and not the contents of each one? ?names Example: Currently, if I have a list variable "matrices", and it contains 3 matrices, "M1"

Re: [R] list names

2010-03-18 Thread Sharpie
Robert M. Flight wrote: > > So I have a list variable, and each item has a name. Is it possible to > return just the names in the list and not the contents of each one? > > Example: > > Currently, if I have a list variable "matrices", and it contains 3 > matrices, "M1", "M2", and "M3", if I ty

[R] list names

2010-03-18 Thread Robert M. Flight
So I have a list variable, and each item has a name. Is it possible to return just the names in the list and not the contents of each one? Example: Currently, if I have a list variable "matrices", and it contains 3 matrices, "M1", "M2", and "M3", if I type: matrices, R returns $M1 -> listing of

Re: [R] List names help

2008-07-29 Thread Sarah Goslee
Sure, just set them to NULL. > mylist <- c(a=1, b=2, c=3) > mylist a b c 1 2 3 > names(mylist) <- NULL > mylist [1] 1 2 3 Sarah On Tue, Jul 29, 2008 at 1:45 PM, Rajasekaramya <[EMAIL PROTECTED]> wrote: > > hi , > > Is there anyways to delet the list names once created. > > i tried > rm(names(my

[R] List names help

2008-07-29 Thread Rajasekaramya
hi , Is there anyways to delet the list names once created. i tried rm(names(mylist)) i didnt work kindly help me Ramya -- View this message in context: http://www.nabble.com/List-names-help-tp18717742p18717742.html Sent from the R help mailing list archive at Nabble.com. _