Displaying 1 result from an estimated 1 matches for "newdatamatrix".
2005 Jan 31
1
naming list elements
...ta 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 something like this:
running.list <- numeric(0)
for(i in 1:num.files){
.....
running.list <- append(running.list, list(this.item.name=newdatamatrix))
}
but the name of the item is always "this.item.name" instead of the CONTENTS
of the character string called "this.item.name".
Obviously, this is correct from R's standpoint, but it's not what I want.
I can force it to do what I want by doing this:
running.list &l...