[Rd] Row subsetting of data frames (PR#425)

Prof Brian Ripley Prof Brian Ripley <ripley@stats.ox.ac.uk>
Wed, 9 Feb 2000 18:14:26 +0000 (GMT)


> Date: Wed, 9 Feb 2000 18:04:06 +0000 (GMT)
> From: Prof Brian Ripley <ripley@stats.ox.ac.uk>
> 
>         if (is.character(i))
>             i <- sapply(i, function(x) match(x, rows))

Oops: I actually tested pmatch, which is what you want here.

-- 
Brian D. Ripley,                  ripley@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._