How can I access the grouped data after applying group_by function from dplyr and using %.% operator
For example, If I want to have the first row of each grouped dat
The only way I found that may help is using the do function.
do
library(dplyr) g.iris <- group_by(x=iris, Species) do(g.iris, function(x){ head(x, n=1)})