I'm not able to generate the output table in shiny, and if I do it only through the function I can. When I try to generate from shiny, I get the following error: NA/NaN argument

I'm not able to generate the output table in shiny, and if I do it only through the function I can. When I try to generate from shiny, I get the following error: NA/NaN argument