Stable lifecycle

# S3 method for distribution
density(x, at, ..., log = FALSE)

Arguments

x

The distribution(s).

at

The point at which to compute the density/mass.

...

Additional arguments passed to methods.

log

If TRUE, probabilities will be given as log probabilities.

Details

Computes the probability density function for a continuous distribution, or the probability mass function for a discrete distribution.