[R] Query on convergence

PIKAL Petr petr@p|k@| @end|ng |rom prechez@@cz
Wed Jul 25 13:55:53 CEST 2018


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-bounces using r-project.org] On Behalf Of tembe-
> atanasio-dz using ynu.jp
> Sent: Wednesday, July 25, 2018 1:22 PM
> To: r-help using 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 using 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/



More information about the R-help mailing list