[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Can't execute the introductory code: take table as input to prod
From: |
Sebastien Vauban |
Subject: |
Re: [O] Can't execute the introductory code: take table as input to produce mean |
Date: |
Wed, 06 Aug 2014 16:14:14 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.92 (windows-nt) |
jenia.ivlev wrote:
> Its the first time I use this type of mail system. I connected here
> using gmane and gnus. I;m not sure how to answer the thread "Can't
> execute the introductory code: take table as input to produce mean".
> So i'll just try to answer the best way I can who means I'll answer to:
> address@hidden
>
> Thanks Sebastien. Tell me though please, how do I define R-mean(x) to
> take any x? How do I run R-mean in the following form:
> R-mean(my-table1), R-mean(my-table2)...
> Cause here, it seems that R-mean is defined with the variable "x"
> hard-wired to a specific value, namely x=tbl-example-data.
Adding `:var x=something' serves 2 purposes:
- Defining the `x' parameter (to the code block)
- Setting its default value
> So again, how do I call R-mean with x=tbl-example-data2 lets say
> (without redefining R-mean)?
#+call: R-mean(x=tbl-example-data2)
Best regards,
Seb
--
Sebastien Vauban