Function: org-babel-reassemble-table

org-babel-reassemble-table is a byte-compiled function defined in ob-core.el.gz.

Signature

(org-babel-reassemble-table TABLE COLNAMES ROWNAMES)

Documentation

Add column and row names to a table.

Given a TABLE and set of COLNAMES and ROWNAMES add the names to the table for reinsertion to org-mode.

Source Code

;; Defined in /usr/src/emacs/lisp/org/ob-core.el.gz
(defun org-babel-reassemble-table (table colnames rownames)
  "Add column and row names to a table.
Given a TABLE and set of COLNAMES and ROWNAMES add the names
to the table for reinsertion to `org-mode'."
  (if (listp table)
      (let ((table (if (and rownames (= (length table) (length rownames)))
                       (org-babel-put-rownames table rownames) table)))
        (if (and colnames (listp (car table)) (= (length (car table))
                                                 (length colnames)))
            (org-babel-put-colnames table colnames) table))
    table))