Take a look at the quantile function. You can view help by typing ?quantile at the prompt and get interactive examples by typing example(quantile)
Michael On Wed, May 2, 2012 at 7:42 PM, Drew Duckett <[email protected]> wrote: > Hi there I am new to R, and I was hoping you guys could help me out. I > want to make a vector that is: vec(1,2,3,4,5,6,7,8,9,10) and i want to > create a function called PercentileFinder, that if i plug in > PercentileFinder (vec, .9) it will give me 9. Creating the function is my > biggest hurdle please e-mail me back when you all get a chance. Thank you > > [[alternative HTML version deleted]] > > ______________________________________________ > [email protected] 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. ______________________________________________ [email protected] 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.

