From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Brand Subject: Re: org-table-duplicate-column Date: Mon, 30 Sep 2013 21:30:12 +0200 Message-ID: References: <2013-09-29T10-33-04@devnull.Karl-Voit.at> <2013-09-29T21-49-38@devnull.Karl-Voit.at> <2013-09-30T13-29-05@devnull.Karl-Voit.at> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38196) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VQjAd-0002UC-F7 for emacs-orgmode@gnu.org; Mon, 30 Sep 2013 15:30:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VQjAc-0005fA-7x for emacs-orgmode@gnu.org; Mon, 30 Sep 2013 15:30:15 -0400 Received: from mail-la0-x233.google.com ([2a00:1450:4010:c03::233]:34694) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VQjAb-0005ew-Vz for emacs-orgmode@gnu.org; Mon, 30 Sep 2013 15:30:14 -0400 Received: by mail-la0-f51.google.com with SMTP id es20so4922867lab.38 for ; Mon, 30 Sep 2013 12:30:12 -0700 (PDT) In-Reply-To: <2013-09-30T13-29-05@devnull.Karl-Voit.at> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: news1142@karl-voit.at Cc: Org Mode Hi Karl On Mon, Sep 30, 2013 at 1:43 PM, Karl Voit wrote: > What about alternating data (no summary value at bottom row) and > evaluation columns? > > | Data 1 | Eval 1 | Data 2 | Eval 2 | > > What about moving columns: > > Switching two columns from: > | Eval 1 | Eval 2 | foo | bar | > to: > | Eval 1 | foo | Eval 2 | bar | Alternation and moving can be handled with conditional formulas #+TBLFM: @>$<..@>$> = if(subvec("@1", 2, 6) == "Eval", 42, $0) in Calc or even simpler (regex) with Lisp. Don't worry, For this I had to cheat and look in testing/lisp/test-org-table.el with the ERTs that should also be an advanced documentation. In this case test-org-table/compare for the comparison and test-org-table/copy-field for the substring. > I still tend to think that org-table-duplicate-column > would be handy in many cases. I can not understand how with a variable if you mean that literally. Also with macros for TBLFM as I imagine, that could be difficult because already now there are conflicts and traps with the TBLFM syntax. Michael