dhist_from_obs | R Documentation |
Generate a sparse discrete histogram from a set of discrete numeric observations
dhist_from_obs(observations)
observations |
A vector of discrete numeric observations |
A sparse discrete histogram. Format is a dhist
object, which
is a list of class dhist
with the following named elements:
locations
: A 1D numeric vector of discrete locations
masses
: A 1D numeric vector of the mass present at each location
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.