emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Uwe Brauer <oub@mat.ucm.es>
To: emacs-orgmode@gnu.org
Subject: Re: problems with tables using https://orgmode.org/worg/org-tutorials/org-lookups.html
Date: Tue, 01 May 2018 11:20:58 +0200	[thread overview]
Message-ID: <876047bukl.fsf@mat.ucm.es> (raw)
In-Reply-To: 87tvrslh0x.fsf@nicolasgoaziou.fr

[-- Attachment #1: Type: text/plain, Size: 1578 bytes --]

>>> "Nicolas" == Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:

Since I am using a git version from July I just pulled the latest master
compiled and installed.


   > It definitely works here.


Here is the table I consider

#+name: raw-data2
|---+-----------------+-----+-----+-----+-----+-----+-----+-----|
|   | Nombre Completo | DNI | Ej1 | Ej2 | Ej3 | Ej4 | Ej5 | Res |
|---+-----------------+-----+-----+-----+-----+-----+-----+-----|
|   | Candidate1      |   1 |   0 |   5 |   5 |   0 |  10 |   2 |
|   | Candidate2      |   2 |   5 |   0 |   5 |   0 |   0 |   1 |
|   | Candidate3      |   3 |   0 |   0 |   0 |  20 |  25 | 4.5 |
|   | Candidate4      |   4 |   0 |   0 |   0 |  25 |  15 |   4 |
|   | Candidate5      |   5 |  15 |  15 |  20 |  25 |  25 |  10 |
|   | Candidate6      |   6 |  15 |  10 |  20 |  20 |  20 | 8.5 |
|   | Candidate7      |   7 |  15 |  10 |  10 |  20 |  15 |   7 |
#+TBLFM: $9=($4+$5+$6+$7+$8)/10

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


I put the cursor on #+TBLFM: $3='(length (org-lookup-all '($1 $2) '(remote(raw-data2,@2$9..@>$9)) nil 'in-interval));N

And run C-c C-c
I obtain an errror and the message
Cells in the region copied, use M-x org-table-paste-rectangle to paste them in a table. [2 times]

But when I run that command org does not present the frequencies I am
looking for, what do I miss?

[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5025 bytes --]

  reply	other threads:[~2018-05-01  9:21 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-05 15:56 problems with tables using https://orgmode.org/worg/org-tutorials/org-lookups.html Uwe Brauer
2018-04-30 12:38 ` Nicolas Goaziou
2018-04-30 16:19   ` Uwe Brauer
2018-04-30 17:51     ` Nicolas Goaziou
2018-05-01  9:20       ` Uwe Brauer [this message]
2018-05-01  9:49         ` Nicolas Goaziou
2018-05-01  9:53       ` [SOLVED] (was: problems with tables using https://orgmode.org/worg/org-tutorials/org-lookups.html) 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=876047bukl.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).