On Tue, 24 Feb 2009 11:36:06 -0800 (PST) (SO, 55 Chs 3175 YOLD) Peterko <lanikpe...@gmail.com> wrote:
> > Hi, may be simle question, but a do not find it anywhere. > Is there same function like max() ,but giving more results. > max() give 1number-maximum > I need funcion what give p bigest number. > many thanks How about sorting first? sort(vector,decreasing=TRUE)[1:p] -- Marius Glauser Life, loathe it or ignore it, you can't like it.
signature.asc
Description: PGP signature
______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.