[Orgmode] [Org-Babel] and R... non-numeric cells

2010-08-12 Thread Sébastien Vauban
Hello, For a report I'm writing, I've been helped by a colleague of mine (let's call him Albert) for the R graphics generation. Here's an extract of my doc: --8---cut here---start-8--- #+TBLNAME: investissement-2010-2013 #+ATTR_LaTeX: align=l |

Re: [Orgmode] [Org-Babel] and R... non-numeric cells

2010-08-12 Thread Erik Iverson
Hello, I'm *guessing* that this is more likely an issue of R than of org-mode. Have you tried tangling the code and simply running the scripts through R? Essentially, the as.matrix function call is returning a character matrix, which could mean your object 'alldata' has some factors instead

Re: [Orgmode] [Org-Babel] and R... non-numeric cells

2010-08-12 Thread Neil Hepburn
I have had a similar problem and I traced it back to the presence of horizontal lines in the source table. The two ways that I have dealt with the problem are to either not have horizontal lines in the table or use some R stuff to clean things up. For example, suppose that I have the following

Re: [Orgmode] [Org-Babel] and R... non-numeric cells

2010-08-12 Thread Erik Iverson
Which version of org-mode are you using? I do not see what you claim to see. What do you get when you run the following: #+TBLNAME: mytbl |column1|column2| ||---| | 45 |34 | | 77 |56 | #+BEGIN_SRC R :var tbl=mytbl :results output str(tbl)