Skip to content
Back to formatted view

Raw Message

Message-ID: <1101100273.41a174f12a2e2@webmail.uvm.edu>
Date: 2004-11-22T05:11:13Z
From: Benjamin M. Osborne
Subject: variable object naming

Is it possible to give a temporary object a name that varies with each run of a
foreloop?  For example, I want to fill a matrix every time I run a loop, and I
want a new matrix with each run, with an appropriate new name.
i.e.:
for(i in 1:5){...  matrix.i<-some values ...}

so that in the end I would have:
matrix.1
matrix.2
matrix.3
matrix.4
matrix.5

Thanks,
Ben Osborne

--
Botany Department
University of Vermont
109 Carrigan Drive
Burlington, VT 05405

benjamin.osborne at uvm.edu
phone: 802-656-0297
fax: 802-656-0440