Package distrib already has a function to return the mean for each known distribution (normal, Poisson, etc.) given the parameters for the distribution. It would be convenient to have the median as well.
I guess the median is well defined for continuous distributions; not sure what should be returned for discrete distributions.