[R] gbinom function

134 views
Skip to first unread message

Kizito Omala

unread,
Sep 26, 2012, 7:24:30 AM9/26/12
to r-h...@r-project.org
Dear all,

I have just downloaded a package 'prob' and also loaded it using
library(prob). Whereas function 'tosscoin' works very well the other
functions like 'gbinom' for graphing density functions does not work.
I get the message:


> gbinom(20,0.3)
Error: could not find function "gbinom"

How do I go about it?

Thanks.

Kizito.

______________________________________________
R-h...@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.

Berend Hasselman

unread,
Sep 26, 2012, 9:17:59 AM9/26/12
to Kizito Omala, r-h...@r-project.org

On 26-09-2012, at 13:24, Kizito Omala <kizr...@gmail.com> wrote:

> Dear all,
>
> I have just downloaded a package 'prob' and also loaded it using
> library(prob). Whereas function 'tosscoin' works very well the other
> functions like 'gbinom' for graphing density functions does not work.
> I get the message:
>
>
>> gbinom(20,0.3)
> Error: could not find function "gbinom"
>

This error message is similar to what you got yesterday.
Function "gbinom" is simply not in package "prob".
Did you look in the index of that package or in the table of contents?

> How do I go about it?

You could put some effort in searching. Try googling on gbinom.
You will see some hits.
There is apparently something available.

Berend

Berend Hasselman

unread,
Sep 26, 2012, 9:48:14 AM9/26/12
to Kizito Omala, r-help@r-project.org help

I have forwarded your message to the R-help list.

You should also send your replies to the R-help list and not just to the person(s) who replied.

Berend

On 26-09-2012, at 15:44, Kizito Omala <kizr...@gmail.com> wrote:

> Hello Berend,
>
> I got the code from google, pasted in the script editor run it and all is well.
>
> Thanks for the guidance.
Reply all
Reply to author
Forward
0 new messages