I’m trying to use the fisher.test function, which is called from a perl script (using R::bridge). However, I’m only interested in the p-value output. Is there a way to capture just the p-val, and ignore (or not print) everything else?
Many thanks!
I’m trying to use the fisher.test function, which is called from a perl script
Share
If you take a look at the values returned by a call to the
fisher.test()function (seehelp(fisher.test)in R), you will notice that there isp.valueamong others. So you just need to use$p.valueon your R object. Here is an example, in R: