emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [babel] ascii package
@ 2010-05-10 11:47 david.hajage
  2010-05-10 16:01 ` Dan Davison
  0 siblings, 1 reply; 3+ messages in thread
From: david.hajage @ 2010-05-10 11:47 UTC (permalink / raw)
  To: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 2010 bytes --]

Hello, 

I am developping a R package named ascii (available on CRAN). It can 
produce org markup from several class of R object. 
I think this could be usefull for some org/R users (with ':results org'), 
and so that it could be mentioned in the "Tips for usage", just after 
"LaTeX code from R" on this page: 
http://orgmode.org/worg/org-contrib/babel/languages/org-babel-doc-R.php#sec-4 


Thank you very much for your attention.

David Hajage

PS - a working example: 

> library(ascii)
> options(asciiType = "org")
> x <- rnorm(100)
> y <- x + rnorm(100)
> ascii(summary(lm(y ~ x)))
|             | Estimate | Std. Error | t value | Pr(>\|t\|)   |
|-------------+----------+------------+---------+--------------|
| (Intercept) | -0.0679  | 0.1038     | -0.6543 | 0.5144       |
| x           | 0.9899   | 0.1056     | 9.3744  | 0.0000       |
> library(Hmisc)
> ascii(describe(esoph))
#+CAPTION: esoph
- 5 Variable
- 88 Observations

*agegp*
| n  | missing | unique |
| 88 | 0       | 6      |

|           | 25-34 | 35-44 | 45-54 | 55-64 | 65-74 | 75+ |
| Frequency | 15    | 15    | 16    | 16    | 15    | 11  |
| %         | 17    | 17    | 18    | 18    | 17    | 12  |

*alcgp*
| n  | missing | unique |
| 88 | 0       | 4      |

 0-39g/day (23, 26%), 40-79 (23, 26%), 80-119 (21, 24%), 120+ (21, 24%)

*tobgp*
| n  | missing | unique |
| 88 | 0       | 4      |

 0-9g/day (24, 27%), 10-19 (24, 27%), 20-29 (20, 23%), 30+ (20, 23%)

*ncases*
| n  | missing | unique | Mean  | .05 | .10 | .25 | .50 | .75 | .90 | .95 
|
| 88 | 0       | 10     | 2.273 | 0.0 | 0.0 | 0.0 | 1.0 | 4.0 | 5.3 | 6.0 
|

|           | 0  | 1  | 2  | 3  | 4 | 5 | 6 | 8 | 9 | 17 |
| Frequency | 29 | 16 | 11 | 9  | 8 | 6 | 5 | 1 | 2 | 1  |
| %         | 33 | 18 | 12 | 10 | 9 | 7 | 6 | 1 | 2 | 1  |

*ncontrols*
| n  | missing | unique | Mean  | .05 | .10 | .25 | .50 | .75  | .90  | 
.95  |
| 88 | 0       | 30     | 11.08 | 1.0 | 1.0 | 3.0 | 6.0 | 14.0 | 29.1 | 
40.0 |

 lowest:  1  2  3  4  5, highest: 40 46 48 49 60

[-- Attachment #1.2: Type: text/html, Size: 4807 bytes --]

[-- Attachment #2: Type: text/plain, Size: 364 bytes --]


L'intégrité de ce message n'étant pas assurée sur Internet, l'Institut Curie ne peut être tenu responsable de son contenu. 
Si vous n'êtes pas destinataire de ce message confidentiel, merci de le détruire et d'avertir immédiatement l'expéditeur.
Afin de contribuer au respect de l'environnement, merci de n'imprimer ce mail qu'en cas de nécessité.

[-- Attachment #3: Type: text/plain, Size: 201 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

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

* Re: [babel] ascii package
  2010-05-10 11:47 [babel] ascii package david.hajage
@ 2010-05-10 16:01 ` Dan Davison
  2010-05-10 16:24   ` david.hajage
  0 siblings, 1 reply; 3+ messages in thread
From: Dan Davison @ 2010-05-10 16:01 UTC (permalink / raw)
  To: david.hajage; +Cc: emacs-orgmode

david.hajage@curie.net writes:

> Hello,
>
> I am developping a R package named ascii (available on CRAN). It can produce org markup from several class of R object.
> I think this could be usefull for some org/R users (with ':results org'), and so that it could be mentioned in the "Tips for usage", just after "LaTeX code from R" on this page: 
> http://orgmode.org/worg/org-contrib/babel/languages/org-babel-doc-R.php#sec-4

Hi David,

Thanks for letting us know. I've added a section as you suggest,
although rather hastily. Please feel free to improve it (Worg is for
community editing). Your package looks very interesting and it would be
interesting to hear any further thoughts you have on the different ways
of using R in conjunction with Org and Org-babel using it.

Dan

>
> Thank you very much for your attention.
>
> David Hajage
>
> PS - a working example:
>
>> library(ascii)
>> options(asciiType = "org")
>> x <- rnorm(100)
>> y <- x + rnorm(100)
>> ascii(summary(lm(y ~ x)))
> |             | Estimate | Std. Error | t value | Pr(>\|t\|)   |
> |-------------+----------+------------+---------+--------------|
> | (Intercept) | -0.0679  | 0.1038     | -0.6543 | 0.5144       |
> | x           | 0.9899   | 0.1056     | 9.3744  | 0.0000       |
>> library(Hmisc)
>> ascii(describe(esoph))
> #+CAPTION: esoph
> - 5 Variable
> - 88 Observations
>
> *agegp*
> | n  | missing | unique |
> | 88 | 0       | 6      |
>
> |           | 25-34 | 35-44 | 45-54 | 55-64 | 65-74 | 75+ |
> | Frequency | 15    | 15    | 16    | 16    | 15    | 11  |
> | %         | 17    | 17    | 18    | 18    | 17    | 12  |
>
> *alcgp*
> | n  | missing | unique |
> | 88 | 0       | 4      |
>
>  0-39g/day (23, 26%), 40-79 (23, 26%), 80-119 (21, 24%), 120+ (21, 24%)
>
> *tobgp*
> | n  | missing | unique |
> | 88 | 0       | 4      |
>
>  0-9g/day (24, 27%), 10-19 (24, 27%), 20-29 (20, 23%), 30+ (20, 23%)
>
> *ncases*
> | n  | missing | unique | Mean  | .05 | .10 | .25 | .50 | .75 | .90 | .95 |
> | 88 | 0       | 10     | 2.273 | 0.0 | 0.0 | 0.0 | 1.0 | 4.0 | 5.3 | 6.0 |
>
> |           | 0  | 1  | 2  | 3  | 4 | 5 | 6 | 8 | 9 | 17 |
> | Frequency | 29 | 16 | 11 | 9  | 8 | 6 | 5 | 1 | 2 | 1  |
> | %         | 33 | 18 | 12 | 10 | 9 | 7 | 6 | 1 | 2 | 1  |
>
> *ncontrols*
> | n  | missing | unique | Mean  | .05 | .10 | .25 | .50 | .75  | .90  | .95  |
> | 88 | 0       | 30     | 11.08 | 1.0 | 1.0 | 3.0 | 6.0 | 14.0 | 29.1 | 40.0 |
>
>  lowest:  1  2  3  4  5, highest: 40 46 48 49 60
>
>
> L'intégrité de ce message n'étant pas assurée sur Internet, l'Institut Curie ne peut être tenu responsable de son contenu. 
> Si vous n'êtes pas destinataire de ce message confidentiel, merci de le détruire et d'avertir immédiatement l'expéditeur.
> Afin de contribuer au respect de l'environnement, merci de n'imprimer ce mail qu'en cas de nécessité.
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

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

* Re: [babel] ascii package
  2010-05-10 16:01 ` Dan Davison
@ 2010-05-10 16:24   ` david.hajage
  0 siblings, 0 replies; 3+ messages in thread
From: david.hajage @ 2010-05-10 16:24 UTC (permalink / raw)
  To: Dan Davison; +Cc: dhajage, emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 4333 bytes --]

I definitly will.

I found a bug in my example: 

|             | Estimate | Std. Error | t value | Pr(>\|t\|)   |
|-------------+----------+------------+---------+--------------|
| (Intercept) | -0.0679  | 0.1038     | -0.6543 | 0.5144       |
| x           | 0.9899   | 0.1056     | 9.3744  | 0.0000       |

I was thinking that '\|' can be used in a table to escape '|', but it 
doesn't work in both html and latex export.
Is it possible to produce a '|' in a table?

In the meantime, perhaps the first example should be removed from worg... 
(I don't have the possibility to do it from this computer).

Thank you very much.

david



Dan Davison <davison@stats.ox.ac.uk> 
10/05/2010 18:01

A
david.hajage@curie.net
cc
emacs-orgmode@gnu.org
Objet
Re: [babel] ascii package






david.hajage@curie.net writes:

> Hello,
>
> I am developping a R package named ascii (available on CRAN). It can 
produce org markup from several class of R object.
> I think this could be usefull for some org/R users (with ':results 
org'), and so that it could be mentioned in the "Tips for usage", just 
after "LaTeX code from R" on this page: 
> 
http://orgmode.org/worg/org-contrib/babel/languages/org-babel-doc-R.php#sec-4


Hi David,

Thanks for letting us know. I've added a section as you suggest,
although rather hastily. Please feel free to improve it (Worg is for
community editing). Your package looks very interesting and it would be
interesting to hear any further thoughts you have on the different ways
of using R in conjunction with Org and Org-babel using it.

Dan

>
> Thank you very much for your attention.
>
> David Hajage
>
> PS - a working example:
>
>> library(ascii)
>> options(asciiType = "org")
>> x <- rnorm(100)
>> y <- x + rnorm(100)
>> ascii(summary(lm(y ~ x)))
> |             | Estimate | Std. Error | t value | Pr(>\|t\|)   |
> |-------------+----------+------------+---------+--------------|
> | (Intercept) | -0.0679  | 0.1038     | -0.6543 | 0.5144       |
> | x           | 0.9899   | 0.1056     | 9.3744  | 0.0000       |
>> library(Hmisc)
>> ascii(describe(esoph))
> #+CAPTION: esoph
> - 5 Variable
> - 88 Observations
>
> *agegp*
> | n  | missing | unique |
> | 88 | 0       | 6      |
>
> |           | 25-34 | 35-44 | 45-54 | 55-64 | 65-74 | 75+ |
> | Frequency | 15    | 15    | 16    | 16    | 15    | 11  |
> | %         | 17    | 17    | 18    | 18    | 17    | 12  |
>
> *alcgp*
> | n  | missing | unique |
> | 88 | 0       | 4      |
>
>  0-39g/day (23, 26%), 40-79 (23, 26%), 80-119 (21, 24%), 120+ (21, 24%)
>
> *tobgp*
> | n  | missing | unique |
> | 88 | 0       | 4      |
>
>  0-9g/day (24, 27%), 10-19 (24, 27%), 20-29 (20, 23%), 30+ (20, 23%)
>
> *ncases*
> | n  | missing | unique | Mean  | .05 | .10 | .25 | .50 | .75 | .90 | 
.95 |
> | 88 | 0       | 10     | 2.273 | 0.0 | 0.0 | 0.0 | 1.0 | 4.0 | 5.3 | 
6.0 |
>
> |           | 0  | 1  | 2  | 3  | 4 | 5 | 6 | 8 | 9 | 17 |
> | Frequency | 29 | 16 | 11 | 9  | 8 | 6 | 5 | 1 | 2 | 1  |
> | %         | 33 | 18 | 12 | 10 | 9 | 7 | 6 | 1 | 2 | 1  |
>
> *ncontrols*
> | n  | missing | unique | Mean  | .05 | .10 | .25 | .50 | .75  | .90  | 
.95  |
> | 88 | 0       | 30     | 11.08 | 1.0 | 1.0 | 3.0 | 6.0 | 14.0 | 29.1 | 
40.0 |
>
>  lowest:  1  2  3  4  5, highest: 40 46 48 49 60
>
>
> L'intégrité de ce message n'étant pas assurée sur Internet, l'Institut 
Curie ne peut être tenu responsable de son contenu. 
> Si vous n'êtes pas destinataire de ce message confidentiel, merci de le 
détruire et d'avertir immédiatement l'expéditeur.
> Afin de contribuer au respect de l'environnement, merci de n'imprimer ce 
mail qu'en cas de nécessité.
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode


L'intégrité de ce message n'étant pas assurée sur Internet, l'Institut Curie ne peut être tenu responsable de son contenu. 
Si vous n'êtes pas destinataire de ce message confidentiel, merci de le détruire et d'avertir immédiatement l'expéditeur.
Afin de contribuer au respect de l'environnement, merci de n'imprimer ce mail qu'en cas de nécessité.

[-- Attachment #1.2: Type: text/html, Size: 6743 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

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

end of thread, other threads:[~2010-05-10 16:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-10 11:47 [babel] ascii package david.hajage
2010-05-10 16:01 ` Dan Davison
2010-05-10 16:24   ` david.hajage

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