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

From: shanmuha boopathy <tts_boopathy_at_yahoo.com>
Date: Tue 06 Dec 2005 - 20:50:14 EST


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 eg........    

  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 value.......    

  thank you all.    

  with regards,
  boopathy.

Thirumalai Shanmuha Boopathy,
Zimmer no : 1109,
Rütscher strasse 165,
52072 Aachen .
Germany.  

Home zone : 0049 - 241 - 9813409
Mobile zone : 0049 - 176 - 23567867                 


        [[alternative HTML version deleted]]



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Tue Dec 06 21:03:22 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:41:29 EST