Re: [R] Finding top 25% observations in Dplyr

2015-08-13 Thread John Kane
> Sent: Thu, 13 Aug 2015 03:14:38 -0700 (PDT) > To: r-help@r-project.org > Subject: [R] Finding top 25% observations in Dplyr > > Hi All, I am working on a dataset baseball where i am grouping based on > one > var income in descending order. > Now i need to find the top 2

[R] Finding top 25% observations in Dplyr

2015-08-13 Thread Shivi82
Hi All, I am working on a dataset baseball where i am grouping based on one var income in descending order. Now i need to find the top 25% of the observations from the income group for which i used top_n (0.25) but it is not finding the desired. Can you please suggest. Baseball%>% group_by(in