Displaying 1 result from an estimated 1 matches for "rnormira".
2010 Nov 28
2
Comparing two functions
Hi. I am new to R and facing a problem that I cannot solve.
I am writing some basic functions. Then I would like to have a master function that allows me to call one of the functions which I created, but I cannot figure out how to do so.
Below is an example. The functions rnormIra and runifIra both seem to work fine. I do not get an error message when entering the definition of the master function randomIra; however, it fails when I use it to call another function.
Can someone please help?
Thanks.
Ira
rnormIra = function(n, mean) {
return(rnorm(n,mean,1))
}...