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@gnu.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