I want to (non-interactively) add (one hline and) a last line to a table in which the last column is summed.
Like so:
#+name: mytable
| p | q |
|---+---|
| a | 5 |
| b | 2 |
#+begin_src emacs-lisp :var table=mytable
(append table ?)
#+end_src
#+RESULTS:
| p | q |
|---+---|
| a | 5 |
| b | 2 |
|---+---|
| | 7 |
I suspect org-table-sum
can help, but I am unsure how.
#+tblflm: @3$2 = vsum (@I..II)
is that correct?How to add hline and column sum to bottom of table using a src block?
. This change will help your question standout against the common vsum is the answer questions.