[R] dynamic function loading

Uwe Ligges ligges at statistik.uni-dortmund.de
Tue Apr 19 08:49:09 CEST 2005


Omar Lakkis wrote:

> How can I do dynamic function loading in R?
> I have a list of R functions in the database and want to, dynamicly,
> execute teh function that corresponds to my in comming data. Is there
> a way to do that without a big if/else?

I don't know whether I understand correctly, but I guess you are 
loooking for object oriented approaches.
So write a generic function and its methods that correspond to your data 
objects. You might want to read the green book on S4 classes.

Uwe Ligges


> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html




More information about the R-help mailing list