View source: R/watanabe-df-manipulation.R
| mergeCols | R Documentation |
sourceDF into dfMerges one column from sourceDF into df based on teh common index of the two data frames
mergeCols(df, sourceDF, colName, dfIndex = "index", sourceIndex = "index", destName = colName)
df |
Data frame to receive column |
sourceDF |
Data frame containing column |
colName |
String. Name of column in |
dfIndex |
String. Name of index column in |
sourceIndex |
String. Name of index column in |
destName |
String. Name column should take when merged into |
The data frame df containing colName from sourceDF named as destName.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.