Search code examples
emacsorg-mode

Copying a range remotely


I've got a table named FOO with the column ("Porc" |- 3 7 15 50 15 7 3) and I'm copying the numbers to another table, shown below. I'm doing it the hard way, cell for cell, but I was wondering if there is a way to copy that range of the remote table (A2 to the bottom) in a single command.

  | Pr (%) | ROE de A | ROE de B |
  |--------+----------+----------|
  |      3 |   -11.43 |   -34.29 |
  |      7 |       0. |   -11.43 |
  |     15 |     3.43 |       0. |
  |     50 |      12. |    17.14 |
  |     15 |    20.57 |    34.29 |
  |      7 |      24. |    41.14 |
  |      3 |    30.86 |    54.86 |
  |--------+----------+----------|
  |  Média |    11.86 |    16.41 |
  | Desvio |     8.37 |    17.61 |
  #+TBLFM: @2$1=remote(FOO, A2)::@3$1=remote(FOO, A3)::@4$1=remote(FOO, A4)::etc

Thanks


Solution

  • It seems your answer is in the org-mode manual:

    $3 = remote(FOO, @@#$2)

    copy column 2 from table FOO into column 3 of the current table For the second example, table FOO must have at least as many rows as the current table. Inefficient for large number of rows.