You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to manip...@googlegroups.com
Hi All,
I just had a "Doh!" moment I thought I'd share. I had not really caught on to the importance of the slice() function. It seemed just like head() or tail(). Then I used head() on a data frame that had been run through group_by(). It only printed the head of the whole data frame since it has no idea that the grouped indices were set. slice() did it by group of course. That's where do() comes in. It can make any function work on group_by info and so it can make head() work like slice() on grouped data, but slice() is so much easier.
Cheers, Bob
Grant Rettke
unread,
Oct 29, 2014, 9:30:35 AM10/29/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Bob, manip...@googlegroups.com
Thanks for sharing that experience; it is valuable to those learning
this framework.
--
Grant Rettke
g...@wisdomandwonder.com | http://www.wisdomandwonder.com/ “Wisdom begins in wonder.” --Socrates
((λ (x) (x x)) (λ (x) (x x)))
“Life has become immeasurably better since I have been forced to stop
taking it seriously.” --Thompson