How to transform a data frame to a row in R? : I have a very basic question about reshaping a table:

           pval     Quality
    High  0.782        0.62
     Low  0.782        1.58

I would like to change it to

       pval     High     Low
      0.782     0.62    1.58
     
I am relatively new to R. Could someone help? Thanks!