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