[R] Error in eval(expr, envir, enclos)
William Dunlap
wdunlap at tibco.com
Wed Nov 4 16:56:12 CET 2015
You need to show more (e.g., the entire function, the output of traceback()
after the error) to get a definitive answer, but that error message can
occur
if you mistakenly use parentheses instead of square brackets when
subscripting
LL. E.g.,
> LL <- 11:20
> LL[3:4]
[1] 13 14
> LL(3:4)
Error: could not find function "LL"
Bill Dunlap
TIBCO Software
wdunlap tibco.com
On Wed, Nov 4, 2015 at 7:18 AM, Alaa Sindi <alaasindi at gmail.com> wrote:
> Hi All,
>
> I am receiving this error
>
> Error in eval(expr, envir, enclos) : could not find function “LL”
>
> the following is in a for loop and all the variables are defined and have
> values.
>
> Prob[i,1]=log(((((sigma)^((1-M[i,1]))))*
> factorial(M[i,1]-1))*(Fmul[i,1])*(Fsum[i,1])*(EV1[i,1])/((EV2[i,1])^(M[i,1])))
>
> LL=LL*Prob[i,1]
>
> thanks
>
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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.
[[alternative HTML version deleted]]
More information about the R-help
mailing list