Error: unexpected '}' in "}"

mydbinom <- function(16 29,0.7711) {
return (factorial(29),factorial(16-29))0.7711^29*(1-0.7711)^(16-29)
}

mydbinom <- function(16 29,0.7711) {
return (factorial(29),factorial(16-29))0.7711^29*(1-0.7711)^(16-29)
}

There is no operator between the ) at the end of the return function and 0.7711. Do you mean to have a * where that ) is and put another ) at the end of that line?
And you can't simply have a comma between the two factorial calls. What are you trying to return?

1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.