emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Uwe Brauer <oub@mat.ucm.es>
To: emacs-orgmode@gnu.org
Subject: BUG? Frequency table does not work any more.
Date: Sun, 16 May 2021 20:04:11 +0200	[thread overview]
Message-ID: <87v97id084.fsf@mat.ucm.es> (raw)



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	other threads:[~2021-05-16 18:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-16 18:04 Uwe Brauer [this message]
2021-05-16 18:16 ` [SOLVED] (was: BUG? Frequency table does not work any more.) Uwe Brauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87v97id084.fsf@mat.ucm.es \
    --to=oub@mat.ucm.es \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).