search for: adduncertainty

Displaying 1 result from an estimated 1 matches for "adduncertainty".

2007 Mar 02
1
S3 best practice
Hello everyone Suppose I have an S3 class "dog" and a function plot.dog() which looks like this: plot.dog <- function(x,show.uncertainty, ...){ <do a simple plot> if (show.uncertainty){ <perform complicated combinatorial stuff that takes 20 minutes and superimpose the results on the simple plot> } } I think that it would be better to somehow