# read from URL

### Example 9.18: Constructing the fastest relay team via enumeration

January 5, 2012 |

In competitive swimming, the medley relay is a team event in which four different swimmers each swim one of the four strokes: freestyle, breaststroke, backstroke, and butterfly. In general, every swimmer might be able swim any given stroke. How can w...
[Read more...]

### Example 8.35: Grab true (not pseudo) random numbers; passing API URLs to functions or macros

April 19, 2011 |

Usually, we're content to use a pseudo-random number generator. But sometimes we may want numbers that are actually random-- an example might be for randomizing treatment status in a randomized controlled trial.The site Random.org provides truly rando...
[Read more...]

### Example 8.12: Bike ride plot, part 1

November 1, 2010 |

The iPhone app Cyclemeter uses the phone's GPS capability to record location and other data, and infer speed, while you ride. I took a ride near my house recently, and downloaded the data. I'd like to examine my route and my speed. A simple plot of ...
[Read more...]

### Example 7.8: Plot two empirical cumulative density functions using available tools

August 1, 2009 |

The empirical cumulative density function (CDF) (section 5.1.16) is a useful way to compare distributions between populations. The Kolmogorov-Smirnov (section 2.4.2) statistic D is the value of x with the maximum distance between the two curves. As an...
[Read more...]

### Example 7.6: Find Amazon sales rank for a book

July 20, 2009 |

In honor of Amazon's official release date for the book, we offer this blog entry.Both SAS and R can be used to find the Amazon Sales Rank for a book by downloading the desired web page and ferreting out the appropriate line. This code is likely to br...
[Read more...]

# Never miss an update! Subscribe to R-bloggers to receive e-mails with the latest R posts.(You will not see this message again.)

Click here to close (This popup will not appear again)