All -
I have an example data frame
x l.c.1
43.38812035 085
47.55710661 085
47.55710661 085
51.99211429 085
51.99211429 095
54.78449958 095
54.78449958 095
56.70201864 095
56.70201864 105
59.66361903 105
61.69573564 105
61.69573564 105
-project.org [mailto:r-help-bounces@r-
project.org] On Behalf Of Steven Ranney
Sent: Friday, 25 March 2011 12:18 p.m.
To: r-help@r-project.org
Subject: [R] tapply with specific quantile value
All -
I have an example data frame
x l.c.1
43.38812035 085
47.55710661 085
47.55710661 085
Just have a look at ?quantile and the probs argument.
tapply(x, l.c.1, quantile,probs=0.75)
Anyway, quantiles and quartiles are not the same. I guess you meant the
3rd quartile.
All -
I have an example data frame
x l.c.1
43.38812035 085
47.55710661 085
47.55710661 085
Hi Steven,
See the prob argument under ?quantile. The following should be what you
want:
tapply(x, l.c.1, quantile, prob = 0.75)
HTH,
Jorge
*
*
On Thu, Mar 24, 2011 at 7:18 PM, Steven Ranney wrote:
All -
I have an example data frame
x l.c.1
43.38812035 085
47.55710661
-help-bounces@r-
project.org] On Behalf Of Steven Ranney
Sent: Friday, 25 March 2011 12:18 p.m.
To: r-help@r-project.org
Subject: [R] tapply with specific quantile value
All -
I have an example data frame
x l.c.1
43.38812035 085
47.55710661 085
47.55710661 085
51.99211429
5 matches
Mail list logo