wrap.merge | R Documentation |
Searches the data frame for columns with identical names and then
merges them into one column, preserving only the single entry within each row
that is not blank or NA
. If any row contains entries in two or more
identically named columns, the function returns an error and does not overwrite
data. After merging columns, the function assigns the revised data frame
directly to the Global Environment.
wrap.merge(df)
df |
The data frame that the function should search for identical column names |
wrap.merge(df = bdata)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.