[BioC] function handle in R

Wolfgang Huber whuber at embl.de
Sat Jan 30 16:24:54 CET 2010

Dear Javier

Functions in R are just variables like everyone else, so you can simply 
   handleFunction=function1 or
   handleFunction=function2 etc.

Have a look into the book by Robert Gentleman
or the online introduction to R
esp. chapter 10. This might save you a lot of time.

	Best wishes

Javier Pérez Florido wrote:
> Dear list,
> Is there any way to use function handle in R? I would like to do 
> something like this (is written in MATLAB)
> handleFunction=@function1;
> handleFunction(arguments) # MATLAB knows that handleFunction is related 
> to function1
> Thus, handleFunction can be any function, for example:
> handleFunction=@function1 or handleFunction=@function2 or 
> handleFunction=@function3, etc
> the function call is always the same
> handleFunction(arguments)
> Any ideas?
> Thanks,
> Javier
> _______________________________________________
> Bioconductor mailing list
> Bioconductor at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/bioconductor
> Search the archives: 
> http://news.gmane.org/gmane.science.biology.informatics.conductor


Best wishes

Wolfgang Huber

More information about the Bioconductor mailing list