R has regular while loops:

while (condition) {

Note that if you try to get help about while you get an error:

help(while)

Error: unexpected ‘)’ in “help(while)”

In Monte Carlo We Trust

R has regular while loops:

while (condition) {

Note that if you try to get help about while you get an error:

help(while)

Error: unexpected ‘)’ in “help(while)”

This entry was posted on Wednesday, March 17th, 2010 at 1:33 am and is filed under feature, r. You can follow any comments to this entry through the RSS 2.0 feed. You can leave a comment, or trackback from your own site.

## Pages

## @statisticsblog

- Where People Bike and Run, Worldwide (@Strava Global Heatmap). http://t.co/sNceR3sCyM about 4 hours ago from TweetDeck
- Some fun (and insights) with facbook's graph API. http://t.co/ZnY7tkSWfE about 5 hours ago from TweetDeck

## Archives

- April 2014
- March 2014
- February 2014
- January 2014
- December 2013
- November 2013
- October 2013
- September 2013
- August 2013
- July 2013
- May 2013
- April 2013
- March 2013
- February 2013
- January 2013
- December 2012
- October 2012
- June 2012
- May 2012
- February 2012
- January 2012
- December 2011
- November 2011
- October 2011
- June 2011
- May 2011
- February 2011
- January 2011
- December 2010
- November 2010
- September 2010
- August 2010
- July 2010
- June 2010
- May 2010
- April 2010
- March 2010

## Reading list

**Reading now:**

Probability Theory by E. T. Jaynes

A Treatise on Probability by John Maynard Keynes

**Recently finished:**

Antifragile by Nassim Taleb

The signal and the noise by Nate Silver

Philosophical Theories of Probability by Donald Gillies

**Up next?**

Principles of Statistical Inference by D.R. Cox

## Recent Comments

## Tags

animation anthropic principle art Autoregressive model contest cosmology cosmotology drunken walk econometrics epistomology escape velocity expectation file handling flash flush gaussian german tank problem humor instability life on earth loops manifesto markov chain mle models Monty Hall problem normal oop poisson polling prize probability python queueing theory r R.A. Fisher randomness random walk rserve simulations sink statistics tails uniform distribution visualization## Blogroll

- Advanced Analytics Blog
- Bayesian Biologist
- Blag's bag of rants
- Byte Mining
- Christopher Gandrud
- Civil Statistician
- Culture, Statistics, and Society
- Data Science without Noise
- Decision Science News
- Denis Haine
- Digital Hardcore
- Econometric Sense
- Econometrics Beat: Dave Giles' Blog
- Engaging Market Research
- Eran Raviv
- Gianluca Baio's blog
- GivenTheData
- Gregor Gorjanc
- Heuristic Andrew
- Industrial Engineer Tools
- Knowledge Discovery
- Misanthrope's Thoughts
- One R Tip A Day
- Probability at mathoverflow
- Psychological Statistics
- Psychwire
- Quantitative Finance & Technical Trading
- R bloggers
- R HEAD
- R snippets
- r4stats
- Recipes, scripts and genomics
- Revolutions
- Romain Francois on R
- Rules of Reason
- Statistics, R, Graphics and Fun
- The R-Podcast
- Xi'an on statistics
- YGC

© 2014.

‘while’ is a special keyword in R, so you need to use

`help('while')`