sample(): “Monkey’s Paw” style programming in R

Win-Vector Blog 2016-03-22

Summary:

The R functions base::sample and base::sample.int are functions that include extra “conveniences” that seem to have no purpose beyond encouraging grave errors. In this note we will outline the problem and a suggested work around. Obviously the R developers are highly skilled people with good intent, and likely have no choice in these matters (due … Continue reading sample(): “Monkey’s Paw” style programming in R

Link:

http://www.win-vector.com/blog/2016/03/sample-monkeys-paw-style-programming-in-r/

From feeds:

Statistics and Visualization » Win-Vector Blog

Tags:

"don't lose flag"

Authors:

John Mount

Date tagged:

03/22/2016, 16:45

Date published:

03/22/2016, 14:53