I'm trying to conduct a t.test for each row and then extract the p-values for plotting. As a reference, I found this old post:output p value from a t-test in R
Here is my snippet:
> pVal143<-apply(mRNA143.data, 1, t.test)$p.value
But when I try to call it I only return "NULL"? Below is a few rows of my data just as a reference, thanks.
       c.mRNA    h.mRNA
1    8.224342  8.520142
2    9.096665 11.762597
3   10.698863 10.815275
4   10.666233 10.972130
5   12.043525 12.140297
UPDATE with original dataset "c007" (I need to compare the p-values from the "C" values and H values).
                                        C1       C2      C3     C4       C5     C6     H1    H2 H3  H4  H5  H6
NP_000005   P01023  Protein Name    8.57345 8.45938 8.68941 8.35913 8.48177 8.44560 8.40986 8.59392 8.46562 8.07999 8.22759 8.41817
NP_000010   P24752  Protein Name    8.32595 8.19273 8.10708 8.48156 7.99014 8.24859 8.78216 8.59592 8.48299 8.52647 8.34797 8.38534
 
    