[R] replacing values in one vector with corresponding index from another vector

David Epstein davideps at umich.edu
Thu Oct 20 01:11:14 CEST 2011


thank you! that is straight forward.

On Wed, 2011-10-19 at 22:37 +0000, William Dunlap wrote:
> > match(b, a)
> [1] 4 5 2 3 1 5 5 1



More information about the R-help mailing list