[R] Merging two data frame with different nrows

Chuck Cleland ccleland at optonline.net
Mon Dec 22 02:47:09 CET 2008


On 12/21/2008 8:32 PM, Antonio Paredes wrote:
> hello-
> 
> I'm trying to merge two data frames with different number of rows. I started
> with a for loop, but it just taking to long . I wanted to ask if there is
> any function in R to merge data frames with different number of rows.

  As the Posting Guide asks, you can use RSiteSearch() or help.search()
before posting to search for functionality.  For example:

RSiteSearch('merge', restrict='function')

  The third hit points to merge(), which does what you want.

-- 
Chuck Cleland, Ph.D.
NDRI, Inc. (www.ndri.org)
71 West 23rd Street, 8th floor
New York, NY 10010
tel: (212) 845-4495 (Tu, Th)
tel: (732) 512-0171 (M, W, F)
fax: (917) 438-0894



More information about the R-help mailing list