Message-ID: <BY2PR01MB1781E9DA5D4F37B9680A64E097E80@BY2PR01MB1781.prod.exchangelabs.com>
Date: 2016-08-22T20:43:08Z
From: Vineetha Warriyar Kodalore Vijayan
Subject: [R-pkg-devel] How to create choices in a function call.
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]]