[R] Is there a neat R trick for this?

Duncan Murdoch murdoch.duncan at gmail.com
Tue Feb 12 12:02:41 CET 2013


On 13-02-12 5:18 AM, Robert Latest wrote:
> Hi guys,
>
> like so often, the answert came to me minutes after posting. pmatch()
> does exactly what I need. match() gives the values of the elements,
> but not their positions.

I think you should read the docs more closely.  match() does what you 
need; pmatch() does partial string matching.

Duncan Murdoch



More information about the R-help mailing list