search for: conacatain

Displaying 1 result from an estimated 1 matches for "conacatain".

2009 Aug 04
2
can a key of a list be a variable
Hi, I search a solution to record data in dynamic structures in R. I have an algorithm that will be executed each step and whose output is an array of doubles with unknown size. The solution I found is to use lists 1) I initialise my list l <- list() 2) and at a step numbered i I conacatain the new tab to the list vect <- algorithm() l <<--c( l , list(stepi=vect)) The problem is that the key "stepi" is here a constant, I'd like to use a variable like this x = paste("step",index,sep="") where index is the last index (i) l <<--c( l , lis...