From: Hongyi Zhao <hongyi.zhao@gmail.com>
To: help-gnu-emacs <help-gnu-emacs@gnu.org>
Subject: Update the value of specific column using the values of other columns on-the-fly.
Date: Sat, 26 Dec 2020 20:47:11 +0800 [thread overview]
Message-ID: <CAGP6POLFwrUbZOdwAyY2kS2gTVtV-0dO1uVuiH_ASF5t+qeNmQ@mail.gmail.com> (raw)
I want to edit a table with 5 columns, where the first column is
calculated from the other columns as below:
val_col1 = 20% * val_col2 + 30% * val_col3 + 40% * val_col4 + 10% * val_col5
I want to let emacs update the column 1, i.e., the weighted mean
result of other columns automatically and on the fly when I input the
values for other columns.
Is this possible with emacs? Any hints will be highly appreciated.
Regards
--
Assoc. Prof. Hongyi Zhao <hongyi.zhao@gmail.com>
Theory and Simulation of Materials
Hebei Polytechnic University of Science and Technology engineering
NO. 552 North Gangtie Road, Xingtai, China
next reply other threads:[~2020-12-26 12:47 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-26 12:47 Hongyi Zhao [this message]
2020-12-26 12:52 ` Update the value of specific column using the values of other columns on-the-fly Emanuel Berg via Users list for the GNU Emacs text editor
2020-12-26 12:57 ` Hongyi Zhao
2020-12-27 0:54 ` Hongyi Zhao
2020-12-27 1:17 ` Emanuel Berg via Users list for the GNU Emacs text editor
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.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAGP6POLFwrUbZOdwAyY2kS2gTVtV-0dO1uVuiH_ASF5t+qeNmQ@mail.gmail.com \
--to=hongyi.zhao@gmail.com \
--cc=help-gnu-emacs@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.
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).