From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Brand Subject: Re: Insert calc vector directly into spreadsheet cells? Date: Wed, 21 May 2014 09:29:59 +0200 Message-ID: References: <87vbt04gq3.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50683) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wn0yQ-0000Cg-6l for emacs-orgmode@gnu.org; Wed, 21 May 2014 03:30:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wn0yO-0003kJ-8B for emacs-orgmode@gnu.org; Wed, 21 May 2014 03:30:02 -0400 Received: from mail-qg0-x234.google.com ([2607:f8b0:400d:c04::234]:47795) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wn0yO-0003iT-3r for emacs-orgmode@gnu.org; Wed, 21 May 2014 03:30:00 -0400 Received: by mail-qg0-f52.google.com with SMTP id a108so2551195qge.39 for ; Wed, 21 May 2014 00:29:59 -0700 (PDT) In-Reply-To: <87vbt04gq3.fsf@bzg.ath.cx> 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: Org Mode Cc: Steven Adrian Hi Steven > Steven Adrian writes: >> #+TBLFM: @1$1..@1$10=index(10) >> >> But the formula above just puts the whole vector in each cell. Can anyone >> tell me how to put the vector values in individual cells? The vector elements can be accessed with Calc subscr() and Org "field coordinates": http://orgmode.org/manual/References.html | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | #+TBLFM: @1$1..@1$10 = subscr(index(10), $#) In a TBLFM I would not use Calc vector functions like index() but a calculation of $#, here simply f(x) = x: | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | #+TBLFM: @1$1..@1$10 = $# Or is there an interesting Calc vector function that is not easy to mimic? Michael