Re: [R] Naming list objects

From: John Kane <jrkrideau_at_yahoo.ca>
Date: Mon, 7 Jan 2008 18:52:47 -0500 (EST)


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

> 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.
>



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. Received on Mon 07 Jan 2008 - 23:56:05 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 08 Jan 2008 - 00:30:05 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive