Description Usage Arguments Value Author(s)
Given 2 data frames(dfA and dfB) and a nx2 matrix of matched indices, will return a dataframe containing both dataframes bound by index. If there are identical names in both dataframes, the result will differentiate by adding idA(default is "A.") to the duplicate names in dfA, and idB(default is "B.") to those in dfB.
1 | bindMatches(dfA, dfB, inds, idA, idB)
|
dfA |
First data frame to bind |
dfB |
Second data frame to bind |
inds |
A nx2 index pair matrix to bind on |
idA |
What to concatenate to a column name in dfA if there exists a identical column in dfB |
idB |
What to concatenate to a column name in dfB if there exists a identical column in dfB |
bindMatches
returns a dataframe of the original dataframes bound by index.
Sam Murray<slmurray@andrew.cmu.edu>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.