From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastien Vauban Subject: Re: Can't execute the introductory code: take table as input to produce mean Date: Wed, 06 Aug 2014 16:14:14 +0200 Message-ID: <867g2logcp.fsf@somewhere.org> References: <87d2cem9ol.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: 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-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org 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: > emacs-orgmode-0jIIvIziipk@public.gmane.org > > 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