Hi maybe
ii<-TRUE while(ii) { do something if(some condition of two variables is met) {ii <- FALSE} } But in R such constructions are seldom necessary. Cheers Petr > -----Original Message----- > From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of tembe- > atanasio...@ynu.jp > Sent: Wednesday, July 25, 2018 1:22 PM > To: r-help@r-project.org > Subject: [R] Query on convergence > > Hello, > > > > Is there somebody who can demonstrate how to code a while loop that ends > when a convergence between the values of two or more variables (say vectors) > is reached? Thank you > > Regards > > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > 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. Osobní údaje: Informace o zpracování a ochraně osobních údajů obchodních partnerů PRECHEZA a.s. jsou zveřejněny na: https://www.precheza.cz/zasady-ochrany-osobnich-udaju/ | Information about processing and protection of business partner’s personal data are available on website: https://www.precheza.cz/en/personal-data-protection-principles/ Důvěrnost: Tento e-mail a jakékoliv k němu připojené dokumenty jsou důvěrné a podléhají tomuto právně závaznému prohláąení o vyloučení odpovědnosti: https://www.precheza.cz/01-dovetek/ | This email and any documents attached to it may be confidential and are subject to the legally binding disclaimer: https://www.precheza.cz/en/01-disclaimer/ ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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.