[R] Naming list objects

John Kane jrkrideau at yahoo.ca
Tue Jan 8 00:52:47 CET 2008


names(alninc) <- c("F", "V", "G") 

--- Wade Wall <wade.wall at gmail.com> wrote:

> Hi all,
> 
> I am trying to name list objects, but am having
> trouble doing so.  At the
> moment I have list alninc that has 3 objects and I
> can refer to them as
> alninc[[1]]  . . .alninc[[3]].  I would like to
> refer to them as alninc$F,
> alninc$V and alninc$G.  How do I do this?  This
> appears to be an elementary
> question, but I can't find the solution anywhere.
> 
> Thanks
> 
> Wade Wall
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help at 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.
>




More information about the R-help mailing list