Function: org--plot/item-frequencies
org--plot/item-frequencies is a byte-compiled function defined in
org-plot.el.gz.
Signature
(org--plot/item-frequencies VALUES &optional NORMALIZE)
Documentation
Return an alist indicating the frequency of values in VALUES list.
When NORMALIZE is non-nil, the count is divided by the number of values.
Source Code
;; Defined in /usr/src/emacs/lisp/org/org-plot.el.gz
(defun org--plot/item-frequencies (values &optional normalize)
"Return an alist indicating the frequency of values in VALUES list.
When NORMALIZE is non-nil, the count is divided by the number of values."
(let ((normaliser (if normalize (float (length values)) 1)))
(cl-loop for (n . m) in (seq-group-by #'identity values)
collect (cons n (/ (length m) normaliser)))))