Thank you Pascal and Greg for the suggestion. That is exactly what I needed!

- Kumar

On Wed, Jan 30, 2013 at 2:14 AM, Pascal Oettli <kridox@ymail.com> wrote:

> Hello,
>
> ?assign
>
> assign(paste("plotroc_GBM_Trn_**", i, sep=""), matrix(rnorm(100),10,10))
>
> HTH,
> Pascal
>
>
> Le 30/01/2013 17:04, Kumar Mainali a écrit :
>
>  I have a situation when I need to save matrix with file names that are
>> programmatically created.
>>
>> for (i in levels(mergeTrn$Continent)) {
>>          matrix here....
>>
>> # I want to save this matrix with a file name that carries "i" from for
>> loop. The following does not work.
>> paste("plotroc_GBM_Trn_", i, sep="") <- matrix
>>
>> }
>>
>> Thanks,
>> Kumar
>>
>>


-- 
Section of Integrative Biology
University of Texas at Austin
Austin, Texas 78712, USA

	[[alternative HTML version deleted]]

