Skip to content
Prev 310445 / 398506 Next

Finding the percentage of points in a designated vector

On Nov 9, 2012, at 9:52 AM, Ricky Corp wrote:

            
sum( s <= 10 ) # Adding up TRUE/FALSE as 1/0
Your subject line suggested something else however. There is a quantile function. Perhaps:

quantile(s, c(0.025, 0.975) )  # 2.5th and 97.5th percentile points