From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jarmo Hurri Subject: Re: R contingency table axes labels in org Date: Mon, 04 Nov 2013 19:30:50 +0200 Message-ID: <87wqkokrat.fsf@syk.fi> References: <871u2wm9sw.fsf@syk.fi> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38190) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VdNzZ-0002sF-LY for emacs-orgmode@gnu.org; Mon, 04 Nov 2013 12:31:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VdNzT-0001Z5-Bs for emacs-orgmode@gnu.org; Mon, 04 Nov 2013 12:31:09 -0500 Received: from plane.gmane.org ([80.91.229.3]:36792) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VdNzT-0001Yf-4X for emacs-orgmode@gnu.org; Mon, 04 Nov 2013 12:31:03 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VdNzR-0000qr-2E for emacs-orgmode@gnu.org; Mon, 04 Nov 2013 18:31:01 +0100 Received: from cs78160219.pp.htv.fi ([62.78.160.219]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 04 Nov 2013 18:31:01 +0100 Received: from jarmo.hurri by cs78160219.pp.htv.fi with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 04 Nov 2013 18:31:01 +0100 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: emacs-orgmode@gnu.org tsd@tsdye.com (Thomas S. Dye) writes: > library(ascii) > ... > print(ascii(table(data)), type="org") Great tip. I even got the result out as an interpreted org table by using ":results output raw". (For example, without "raw" it becomes literal.) Thanks! * interesting data #+BEGIN_SRC R :exports results :results output raw library (ascii) org.files <- c (1, 0, 2, 2, 2, 2, 1) happiness <- c (1, 0, 2, 2, 2, 1, 2) data <- data.frame (org.files, happiness) print (ascii (table (data)), type = "org") #+END_SRC #+RESULTS: | | | *happiness* | | | | | | 0 | 1 | 2 | |-------------+---+-------------+------+------| | *org.files* | 0 | 1.00 | 0.00 | 0.00 | | | 1 | 0.00 | 1.00 | 1.00 | | | 2 | 0.00 | 1.00 | 3.00 | Jarmo