Hi Vineetha, It sounds like you want the "do.call" function and an argument in your "one function" to specify the function that you want to call.
Jim On Tue, Aug 23, 2016 at 6:43 AM, Vineetha Warriyar Kodalore Vijayan <vineethawarriyar....@ucalgary.ca> wrote: > Dear R package developers, > > I'm trying to create a small R package that gives me an epidemic from > different epidemic models. I have imported the source codes from fortran for > different models, say epidata1(),epidata2() and so on and it works fine. My > question here is, how I can do the same by calling one function in R, which > gives me options to input different model formulas and corresponding > parameters. > I'm relatively new in R programming and package building. I googled a lot and > read about S3 and S4 methods, but really > couldn't figure out how/where to start. I would really appreciate any > help/guidance. > > Thank you, > Vineetha > > [[alternative HTML version deleted]] > > ______________________________________________ > R-package-devel@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-package-devel ______________________________________________ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel