match1to2 | R Documentation |
Orders 2 datasets on corresponding variables, then appends an NA matrix as needed before binding on columns. This is mainly used to combine different types of sample metadata on common/shared GSM IDs. Note columns should be matchable after calling 'as.character()' for each.
match1to2(d1, d2, ci1 = 2, ci2 = 1)
d1 |
First set to combine (matrix). |
d2 |
Second set to combine (matrix). |
ci1 |
Column index in first dataset to match on |
ci2 |
Column index in second dataset to match on |
Union of the 2 datasets, including NA values where appropriate.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.