[R] how to get or store the intermediate v?lues while running a function

2005-12-06 Thread shanmuha boopathy
Dear all, While running a function I´m getting only the final output of the function. Bit if I like to store or recover some values that are intermediate in the function calculations which command I have to use for storing those values. hope u understand. for

Re: [R] how to get or store the intermediate v?lues while running a function

2005-12-06 Thread vincent
shanmuha boopathy a écrit : a-function(a,b,c,d) { k=a+b l=c+d m=k+l } in this example the function will return only the value of m ...But I like to extract the values of l k also. which command to use for storing or for extracting those intermediate