[R] dplyr instead of plyr: Help

2015-11-02 Thread Axel Urbiz
Sorry, this is *related* to a recent post, but not the same. I'd appreciate your help in getting the same results with the two methods below (the first using plyr and the second using dplyr. The former works, but not the latter.) ### Sample data set.seed(4) df <- data.frame(pred = rnorm(100), y

Re: [R] dplyr instead of plyr: Help

2015-11-02 Thread Thierry Onkelinx
Please don't post in HTML. It makes your code unreadable. ir. Thierry Onkelinx Instituut voor natuur- en bosonderzoek / Research Institute for Nature and Forest team Biometrie & Kwaliteitszorg / team Biometrics & Quality Assurance Kliniekstraat 25 1070 Anderlecht Belgium To call in the statistici

[R] dplyr instead of plyr: Help

2015-11-02 Thread Axel Urbiz
Sorry, this is *related* to a recent post, but not the same. I'd appreciate your help in getting the same results with the two methods below (the first using plyr and the second using dplyr. The former works, but not the latter.) ### Sample data set.seed(4)df <- data.frame(pred = rnorm(100), y =