emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Insert calc vector directly into spreadsheet cells?
@ 2014-05-17 21:40 Steven Adrian
  2014-05-20 15:23 ` Bastien
  0 siblings, 1 reply; 7+ messages in thread
From: Steven Adrian @ 2014-05-17 21:40 UTC (permalink / raw)
  To: emacs-orgmode

I would like to insert a calc vector directly into a range of spreadsheet
cells from a function. As a specific example, consider the calc index
function, which returns a calc vector of integers from 1 to n. Once calc has
started within an emacs session, the index function can be accessed from
within the scratch buffer as:

(calcFunc-index 10)

If the above function is evaluated, the echo area will display the calc
vector returned by the function:

(vec 1 2 3 4 5 6 7 8 9 10)

I would like to put these values into a range of cells with a table formula
like:

#+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?

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-05-27 18:06 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-17 21:40 Insert calc vector directly into spreadsheet cells? Steven Adrian
2014-05-20 15:23 ` Bastien
2014-05-21  7:29   ` Michael Brand
2014-05-26 19:39     ` Steven Adrian
2014-05-26 20:43       ` Michael Brand
2014-05-27  9:12         ` Steven Adrian
2014-05-27 18:06           ` Michael Brand

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

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).