[R] pmatch questions

2003-10-02 Thread Vito Muggeo
Dear all, Below there are two, simple - I suppose, questions on using pmatch(): pmatch(xx, c(cc,xxa)) [1] 2 pmatch(a, c(cc,xxa)) [1] NA pmatch(xx, c(cc,xxa,xxb)) [1] NA I would like that the second call returns also 2, and the third call returns c(2,3) is it possible? many thanks vito

AW: [R] pmatch questions

2003-10-02 Thread Unternährer Thomas, uth
An: [EMAIL PROTECTED] Betreff: [R] pmatch questions Dear all, Below there are two, simple - I suppose, questions on using pmatch(): pmatch(xx, c(cc,xxa)) [1] 2 pmatch(a, c(cc,xxa)) [1] NA pmatch(xx, c(cc,xxa,xxb)) [1] NA I would like that the second call returns also 2, and the third call returns

Re: [R] pmatch questions

2003-10-02 Thread Uwe Ligges
Vito Muggeo wrote: Dear all, Below there are two, simple - I suppose, questions on using pmatch(): pmatch(xx, c(cc,xxa)) [1] 2 pmatch(a, c(cc,xxa)) [1] NA pmatch(xx, c(cc,xxa,xxb)) [1] NA I would like that the second call returns also 2, and the third call returns c(2,3) is it possible? You