[R] go or goto command
Some computer languages, including C, have a go or go to command which can be used to shift control to a different part of a function. Question: Does the R language have a corresponding command? (Yes, I am aware that it can be abused; but, in the hands of a good programmer, it is simple to use.) Tom Jones __ 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 and provide commented, minimal, self-contained, reproducible code.
Re: [R] go or goto command
On 1/10/2007 12:13 AM, Thomas L Jones wrote: Some computer languages, including C, have a go or go to command which can be used to shift control to a different part of a function. Question: Does the R language have a corresponding command? (Yes, I am aware that it can be abused; but, in the hands of a good programmer, it is simple to use.) No, it doesn't. Duncan Murdoch __ 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 and provide commented, minimal, self-contained, reproducible code.
Re: [R] go or goto command
Thomas L Jones wrote: Some computer languages, including C, have a go or go to command which can be used to shift control to a different part of a function. Question: Does the R language have a corresponding command? (Yes, I am aware that it can be abused; but, in the hands of a good programmer, it is simple to use.) Nope. Only break, next, and return. __ 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 and provide commented, minimal, self-contained, reproducible code.