Skip to content

dynamic function loading

2 messages · Omar Lakkis, Uwe Ligges

#
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?
#
Omar Lakkis wrote:

            
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