[R] bigest part of vector
markleeds at verizon.net
markleeds at verizon.net
Tue Feb 24 20:52:41 CET 2009
There's probably something built in to R but you can change the values
of the percentiles (p) below to get the value that corresponds to it.
rounding might be problematic also.
temp <- c(1,4,8,3,5)
p <- 0.8
temp[order(temp)][round(length(temp)*p)]
On Tue, Feb 24, 2009 at 2:36 PM, Peterko 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
> --
> View this message in context:
> http://www.nabble.com/bigest-part-of-vector-tp22188901p22188901.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at 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.
More information about the R-help
mailing list