search for: notesonr

Displaying 2 results from an estimated 2 matches for "notesonr".

Did you mean: noteonr
2002 Jun 26
0
AW: sapply() and Monte Carlo
...> Would anyone on > robin> the List be interested in a collection > specifically of neat R > robin> oneliners? > > When they are amusing, I forward them into a Wiki that I keep > for brain > dumping: > http://software.biostat.washington.edu/wikis/front/NotesOnR I need to refactor this into appropriate sections (and occassional, add a small bit of markup, and occassionally remove them for better versions), but it's one place to add them. (there's a place to "add comments" at the bottom). I'm sure that there is a better place (perha...
2002 Jun 26
3
sapply() and Monte Carlo
Dear Helplist Some time ago, Professor Ripley gave me a tip which I thought was very very useful for Monte Carlo simulation; I thought I'd pass it on to the list, and ask whether this or a similar example could be added to the sapply() manpage. Suppose I have ten N(0,1) random variables and I'm interested in the pair that are closest together: R> min(diff(sort(rnorm(10)))) [1]