Re: [R] Specifying argument values in a function

2011-08-25 Thread R. Michael Weylandt
Hi Sam, The heart of your problem is that you are not using strings in your off statements. Rather, you are calling objects called norm and cumu and R is trying to test those for equality. In the first case, when you get to norm, R tries to call the norm() function, which is the magnitude of a ve

[R] Specifying argument values in a function

2011-08-25 Thread Sam Albers
Hello all, I am trying write a fairly simple function that provide a quick way to calculate several distributions for a data set. I am trying to provide a function that has a argument that specifies which distribution is outputted (here "norm" or "cumu"). I also have a melt argument but that seems