next up previous
Next: Matching elements between vectors Up: Database type operations Previous: Database type operations

Merging datasets

The merge() function performs a database join, e.g., pulling information from another data frame by associating the column in one frame with a column in another frame. Be careful as the function tends to sort the result when you may not expect it and it's not clear to me that the sort argument actually is functional.

Keywords: merge, database, join, R

Last modified 12/13/08.



Chris Paciorek 2012-01-21