Re: [R] naming list elements

2005-01-31 Thread Pierre Kleiber
Will the following work for you? Cheers, Pierre > junk <- list() > for(i in 1:5) junk[[paste("Item",i,sep="")]] <- runif(4) > str(junk) List of 5 $ Item1: num [1:4] 0.687 0.508 0.734 0.704 $ Item2: num [1:4] 0.5497 0.1777 0.4081 0.0129 $ Item3: num [1:4] 0.768 0.808 0.592 0.697 $ Item4: num

[R] naming list elements

2005-01-31 Thread Michael Wolosin
All - Each time through a loop I create a new dataset, which I would like to append to a list object. Each item of the list should be the data matrix created in that step of the loop; I would like the NAME (or tag) of that list item to be assigned the value of a character string: I've tried so

[R] Naming list elements

2004-04-23 Thread Luis Rideau Cruz
How to name the following list GH.MEINKV.byyear ( a list consisting of 9 data frames) GH.MEINKV.byyear<-as.list(numeric(length(levels(GH.MEINKV$"Year" Luis Ridao Cruz Fiskirannsóknarstovan Nóatún 1 P.O. Box 3051 FR-110 Tórshavn Faroe Islands Phone: +298 353900 Phone(direct)