emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

BUG? Frequency table does not work any more.


From: Uwe Brauer
Subject: BUG? Frequency table does not work any more.
Date: Sun, 16 May 2021 20:04:11 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)


Hi 
I am currently running 9.4.5, well actually a version compiled from git
master, that I upgraded a couple of weeks ago. 
Commit is e641d3736036732e7642807146a97b0876cb8b83 



However in the version I used two month ago the following worked nicely 

#+TBLNAME: raw-data
| Stud |  Mark |
|------+-------|
|      |     0 |
|      |     0 |
|      |     0 |
|      |     0 |
|      |     0 |
|      |     0 |
|      |     1 |
|      |  1.25 |
|      |  1.25 |
|      |     2 |
|      |     2 |
|      |   2.5 |
|      |   2.5 |
|      |     3 |
|      |     3 |
|      |  3.25 |
|      |     4 |
|      |     4 |
|      |  4.25 |
|      |   4.5 |
|      |   4.5 |
|      |   4.5 |
|      |   5.5 |
|      |   5.5 |
|      |  5.75 |
|      |     6 |
|      |   6.5 |
|      |     7 |
|      |   7.5 |
|      |     9 |
|------+-------|
| Mean | 3.342 |
#+TBLFM: $1=@#-1::@32$2=vmean(@I$2..@II$2)

That still works

However 

#+BEGIN_SRC emacs-lisp
  (defun in-interval (bounds el)
    (and (>= el (car bounds)) (<= el (cadr bounds))))
#+END_SRC
#+RESULTS:
: in-interval


| lower bound | upper bound | frequency |
|-------------+-------------+-----------|
|           1 |           5 |        16 |
|           5 |             |         0 |
#+TBLFM: $3='(length (org-lookup-all '($1 $2) '(remote(raw-data,@2$2..@>$2)) 
nil 'in-interval));N


That does not work any more. When I put my cursor on TBLFM and run C-c
C-c then a cryptic message 

Cells in the region copied, use M-x org-table-paste-rectangle to paste them in 
a table. [2 times]

But I don't want to copy the cells in the region, I want to execute the
function.
That is a important matter since I rely on the functionality quite a
bit.

What shall can I do

Regards


Uwe Brauer 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]