On Aug 31, 2011, at 10:25 AM, . . wrote:

I found that replacing "dcom" by "dexp"( that is what dcom will become
is this case) solve the problem. But I need some mechanics like this
provided by dcom, because I am planning to also use dgamma and many
others...

In R functions are "things" but they are not "strings" and cannot be executed by just asserting a character vector element. If you want to construct a 'call' from a acharacter, you can bridge that divide with do.call:

?do.call
fn <- paste("d", "gamma", sep="")
do.call(fn, list(1:10, shape=1) )
[1] 0.36787944117 0.13533528324 0.04978706837 0.01831563889 0.00673794700 [6] 0.00247875218 0.00091188197 0.00033546263 0.00012340980 0.00004539993

--
David


So, if some one have any idea it will be very appreciable.

Thanks in advance.

On Wed, Aug 31, 2011 at 7:07 AM, Jim Lemon <j...@bitwrit.com.au> wrote:
On 08/31/2011 07:06 PM, Patrick Connolly wrote:

. .


-- .- -.-- -... .   ... --- -- .
.-. . .--. .-. --- -.. ..- -.-. .- -... .-.. .   -.-. --- -.. .
.-- --- ..- .-.. -.. .... . .-.. .--. ..- ... .- -. ... .-- . .-.
-.-- --- ..- .-.   --.- ..- . ... - .. --- -.   ... - --- .--.

.- .--. --- .-.. --- --. .. . ...   ..-. --- .-.   -- -.--
.-. ..- ... - -.-- -- --- .-. ... . -.-. --- -.. . ... - --- .--.

For those who can't read Morse code:

E E
MAYBE SOME REPRODUCABLE CODE WOULD HELP US ANSWER YOUR QUESTION STOP
APOLOGIES FOR MY RUSTY MORSE CODE STOP

Jim


______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

David Winsemius, MD
West Hartford, CT

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to