To the extent that 'persistent' means 'global', global in R is: <<-, so r <- 1 is local scope and r <<- 1 is global scope.
HTH, Roger -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Charles C. Berry Sent: Thursday, December 14, 2006 3:34 PM To: Bernard Gregory Cc: [email protected] Subject: Re: [R] persistant: Matlab->R It is just my guess that the 'open.account' example in 10.7 Scope of Introduciton to R is what you are after. If I understand what 'presistent' means, the 'total' in the example is approximately equal to a persistent variable. On Thu, 14 Dec 2006, Bernard Gregory wrote: > Dear list members, > > Could anyone tell me if there is an equivalent of the Matlab declaration 'persistant' in R? > > Thank you very much, > > Bernard Gregorry. > (Matlaber converted to R). > > > --------------------------------- > > [[alternative HTML version deleted]] > > ______________________________________________ > [email protected] mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > Charles C. Berry (858) 534-2098 Dept of Family/Preventive Medicine E mailto:[EMAIL PROTECTED] UC San Diego http://biostat.ucsd.edu/~cberry/ La Jolla, San Diego 92093-0717 ______________________________________________ [email protected] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. ********************************************************************** * This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. No right to confidential or privileged treatment of this message is waived or lost by any error in transmission. If you have received this message in error, please immediately notify the sender by e-mail, delete the message and all copies from your system and destroy any hard copies. You must not, directly or indirectly, use, disclose, distribute, print or copy any part of this message if you are not the intended recipient. ______________________________________________ [email protected] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
