Re: [R] How to assign names in a list

2009-01-20 Thread mondher mehdi
Hi for var names other than name1 ,2 and 3 for exple green yellow red use simply names(list2)=c("green","yellow","red") [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE

Re: [R] How to assign names in a list

2009-01-19 Thread john seers (IFR)
Dallazuanna [mailto:www...@gmail.com] Sent: 19 January 2009 12:30 To: john seers (IFR) Cc: r-help@r-project.org Subject: Re: [R] How to assign names in a list If I understand correctly: names(list2) <- paste("name", 1:3, sep = "") On Mon, Jan 19, 2009 at 10:23 AM, john seers

Re: [R] How to assign names in a list

2009-01-19 Thread Henrique Dallazuanna
If I understand correctly: names(list2) <- paste("name", 1:3, sep = "") On Mon, Jan 19, 2009 at 10:23 AM, john seers (IFR) wrote: > > Hi All > > > How can you associate names with a list when names have not been > assigned? For example if you have a list like this: > > > list2<-list(1,2,3) > lis