Skip to content

Finding the percentage of points in a designated vector

2 messages · Ricky Corp, David Winsemius

#
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