How to display the results this way ?

Hi,
I want to display the results this way:

round(dhyper(0:9, 2852, 2861, 9), 3)

What do I do to get it that way, please ?

cat("",paste0(0:9,"    "),"\n",
    sprintf("%.3f",dhyper(0:9, 2852, 2861, 9)))

Thank you Nir, for your kind reply,

I tried before with:

table(0:9, round(dhyper(0:9, 2852, 2861, 9), 3)) 

but it didn't get me what I wanted.
Thanks again.

This topic was automatically closed 7 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.