Re: [R] simple "for loop" program for merging datasets?

2009-03-19 Thread David Winsemius
You say you want to merge the two datasets on Country but the last step in you unsuccessful effort tries to match the results of the nested loop (necessarily with values of Measure2 from B) to B which has 3 rows. You never told us what the final results of this effort should be. but surely

[R] simple "for loop" program for merging datasets?

2009-03-19 Thread J S
Dear R community, I would like to merge two datasets based on the categorical predictor “country”. Dataset A: Country Measure1 Afganistan1 Afganistan1 Russia 5 Poland 3 Poland 2 Dataset B: Country Measure 2 Russia