emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] very long table calc expressions ?


From: Uwe Brauer
Subject: Re: [O] very long table calc expressions ?
Date: Fri, 22 Jun 2018 19:54:10 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

   > On 22/06/2018 18:48, Nick Dokos wrote:
   > A utility lisp function can enhance readability:

   > #+begin_src elisp
   >   (defun test-to-interval (x)
   >     (let ((n (string-to-number x)))
   >       (cond
   >        ((equal x "")              "NP")
   >        ((and (<= 0 n) (<= n 4.9)) "SS")
   >        ((and (<= 5 n) (<= n 6.9)) "AP")
   >        ((and (<= 7 n) (<= n 8.9)) "NT")
   >        ((and (<= 9 n) (<= n 10 )) "SB")
   >        (t                         "other"))))
   > #+end_src

This is extremely helpful! Thanks a lot. I hope France will make it to
the final of the World Cup (more I cannot wish you :-D )

@Nick, I think this example should make it into the documentation, for
example in  https://orgmode.org/worg/org-tutorials/org-lookups.html.

What do you think?

Uwe 

Attachment: smime.p7s
Description: S/MIME cryptographic signature


reply via email to

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