.BG
.VE $Header: /usr3/s/current/s/.help/RCS/match,v 1.2 83/12/30 19:30:22 rab Exp $
.FN match
.TL
match: Match Items in Vector
.CS
match(x, list)
.PP
.AG x
vector of items that are to be looked for in `list'.
.AG list
the possible values in `x'.
.PP
.RT
vector like `x' giving the index in `list' of the item that
matches each element of `x'.  If an element of `x' is not in
`list', NA is returned.
.EX
match(data,primes)
state.abb[match(names,state.name)] #change names to abbrevs
.KW basic*
.WR
