Description Usage Arguments Value Examples
Data in wide format has one peptide/protein per row, and multple columns with intensities. Data in long format has one intensity per row and more than one row corresponds to the same molecule. The long format is convenient for merging multiple reports and for plotting with ggplot2.
1 | wide2long(wide_report, I_col_pattern)
|
wide_report |
A report in a wide format. |
I_col_pattern |
A pattern selecting columns with intensities; consult the 'stringr' package. Additionally, you can specify the group name by including it between the colons. |
A report in a long format.
1 2 3 | data(simple_protein_report)
# Columns 'A 1', 'A 2', 'A 3'. 'A 4', 'B 1', 'B 2', 'B 3', 'B 4'.
# wide2long(simple_protein_report, '(:condition:.) (:technical_replicate:.)')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.