Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

agnos.is Forums

  1. Home
  2. Emacs
  3. Elisp in org-mode for counting tag groups

Elisp in org-mode for counting tag groups

Scheduled Pinned Locked Moved Emacs
emacs
1 Posts 1 Posters 0 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • edumerco@lemmy.mlE This user is from outside of this forum
    edumerco@lemmy.mlE This user is from outside of this forum
    [email protected]
    wrote last edited by
    #1

    Dear emacs and org-mode comrades.

    Given:

    • a table with
      • a list of tags +
      • their number of appearances in question 1 (Q1) & and question 2 (Q2).
    • org support for tag groups (https://orgmode.org/manual/Tag-Hierarchy.html)
    • 3 defined tag groups
      • GroupTag1 (GT1)=tagA+tagC+tagD and
      • GroupTag2 (GT2)=tagB+tagE
      • GroupTag3 (GT3)=tagB+tagC+tagD (yes, some tags are in more than 1 group)

    How can I count with pure elisp (assuming some table formula but I'm open to other ways) the sum of individual tag appearances of each tag group, for each question?

    Example:

    | tag  | Q1 | Q2 |
    |------+----+----|
    | tagA |  9 |    |
    | tagB |  4 |  2 |
    | tagC |  1 |  4 |
    | tagD |    |  5 |
    | tagE |    |  6 |
    |------+----+----|
    | GT1  | 10 |  9 |
    | GT2  |  4 |  9 |
    | GT3  |  5 | 11 |
    
    

    Thanks a lot for your time and attention... 🙂

    1 Reply Last reply
    3
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups