add.col {spaa} | R Documentation |
This function can be used to add one column from dataframe B to dataframe A, according to the column names speciefied.
add.col(inputA, inputB, add, according)
inputA |
|
inputB |
|
add |
|
according |
|
This function can be used to add one column from dataframe B to dataframe A, according to the column names specified. Users have to make sure the to dataframes at least share the common names specified. This function may be an alternative for merge
Jinlong Zhang
See Alsomerge
data(splist)
data(testdata)
## add genera from dataframe B to dataframe A.
add.col(inputA = testdata, inputB = splist, add = "genera",
according = "species")
## add family from dataframe B to dataframe A.
add.col(inputA = testdata, inputB = splist, add = "family",
according = "species")