If no args are passed, or if all args are included in matargs and/or scalarargs, qgeneric raises an error. For example, it is not possible to calculate the median of the standard normal distribution (without explicitly supplying the mean and sd):
> qgeneric(pnorm, .5)
Error in max(c(length(p), veclen, matlen)) :
invalid 'type' (list) of argument
If no args are passed, or if all args are included in
matargs
and/orscalarargs
,qgeneric
raises an error. For example, it is not possible to calculate the median of the standard normal distribution (without explicitly supplying the mean and sd):