Don't use replicate() like this. You have '...' in your *expression*, and
it really should only be used in the body of a function.
But if you want to understand why
debug(rexp)
rdistr - function(distr, ...) replicate(1, distr(n = 1, ...))
rdistr(rexp)
debugging in: distr(n = 1, ...)
debug:
Dear userRs,
playing around with combinations of replicate() and random number
generating functions inside a self-defined wrapper function I encounterd
a puzzling behaviour.
The following are intentionally simple (and rather nonsense-) examples to
isolate the relevant aspects. Please, note
2 matches
Mail list logo