Converting Likelihood Equation Into R Code Stack Overflow

Converting Likelihood Equation Into R Code Stack Overflow