[R-pkg-devel] How to create choices in a function call.
Jim Lemon
drjimlemon at gmail.com
Tue Aug 23 01:25:09 CEST 2016
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.kod at 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 at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-package-devel
More information about the R-package-devel
mailing list