search for: randomira

Displaying 1 result from an estimated 1 matches for "randomira".

Did you mean: random_r
2010 Nov 28
2
Comparing two functions
...ld 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)) } rnormIra(10,100) #works fine runifIra = function(n,min,max) { return(runif(n,min,max)) } runifIra(5,20,30) #works fine ra...