Re: [R] Select the rows in a dataframe that matches a criteria in another dataframe

2009-05-11 Thread David Winsemius
On May 10, 2009, at 7:54 PM, David Winsemius wrote: ?subset ?%in% (I have gotten tired of converting dataframes that are presented in a non-executable form, such as is supported by the dput function. So, ... you should read those help pages and take the obvious path to success.)

[R] Select the rows in a dataframe that matches a criteria in another dataframe

2009-05-10 Thread Cecilia Carmo
Hi everyone! Thank you for the help you have been given to me, and here I'm with another problem with my dataframes: I have two dataframes (with much more observations), like these: Dataframe1 Firm Year cash 5004002002007 100 5004002002006 200 5004002002005

Re: [R] Select the rows in a dataframe that matches a criteria in another dataframe

2009-05-10 Thread David Winsemius
?subset ?%in% (I have gotten tired of converting dataframes that are presented in a non-executable form, such as is supported by the dput function. So, ... you should read those help pages and take the obvious path to success.) Something along the lines of: subset(df1, Firm %in%