[R] how should I make the optional arguments in r?

2013-01-24 Thread Tammy Ma
HI, I guess I did sth wrong with the optional argument in the program. but I don't know how should I make it. in my main program: source(getelasticity_overPB.r) crossprice-getelasticity(mydata,mydatao,nest)$cross_p is same with crossprice-getelasticity(mydata,mydatao)$cross_p I don't know

Re: [R] how should I make the optional arguments in r?

2013-01-24 Thread Rui Barradas
Hello, The question is a bit confusing, but for what I could understand, try changing to rr - getrange(dataw, mydatao, method = method) Hope this helps, Rui Barradas Em 24-01-2013 18:26, Tammy Ma escreveu: HI, I guess I did sth wrong with the optional argument in the program. but I