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


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

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

Reply via email to