What are the names of your data.frames columns? Paste the output of the following commands in a post: dput(head(df1, 30)) dput(head(df2, 30)) Tui Barradas Em 13-06-2012 12:55, Sathya Priya escreveu: > I got this error while trying your code.. Can you please sort it out > > Error in fix.by(by.x, x) : 'by' must specify valid column(s) >