28 HOMEWORK 3 [DUE 10/23]
DUE: 10/23
The goal of this homework is to take some of the functions that you wrote in Homework 2 and to put them into an R package. This would allow someone else to easily use your functions by simply installing the R package. In addition, they would receive documentation on how to use the functions.
Take the functions that you wrote for Parts 1 and 3 and put them into an R package. You will need to write documentation for each function that you export You should include the functions
Exp()
, which computes the approximation to the exponential functionplot_simulationCI()
, which plots the confidence intervals from the simulated data
Your package will have two exported functions for users to call.
Notes:
Remember that you should only export the functions that you want the user to use.
Functions that are not exported do not require any documentation.
Each exported function should have at least one example of its usage (using the
@examples
directive in the documentation).
Homework Submission
Please build your R package either into a .tar.gz
file or to a .zip
file and upload the file to the dropbox on Courseplus.
Please name the package Homework3<your last name>
and then upload it to the Courseplus dropbox. So for example, the name of my package would be Homework3Peng
.