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"
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
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
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
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.
_
5 matches
Mail list logo