I am trying to determine the correlation between meta genes from running NMF with clinical metadata. As such, I have two data frames to work with. The first being the h matrix with Metagene expression for each patient. The other data frame being the metadata. I would want to run separate correlations between n Metagenes with the metadata data frame.
The matrix with n meta genes
   Metagene 1     Metagene 2    Metagene N
P1   0.434          0.454
P2   0.322          0.343
P3   0.343          0.323
I want to run a correlation of a column of this above matrix with the metadata matrix (about 30+ columns).
      Age    BMI    etc
P1    43.4   45.4
P2    32.2   34.3
P3    34.3   32.3
From my own attempts and from my research, I could only correlate two whole data frames and not one specific column with another whole data frame. Any advice would be appreciated by this newbie thank you!
 
    