Thursday, 24 March 2016

Using apply, sapply, lapply in R

This is an introductory post about using apply, sapply and lapply, best suited for people relatively new to R or unfamiliar with these functions. There is a part 2 coming that will look at density plots with ggplot, but first I thought I would go on a tangent to give some examples of the apply family, as they come up a lot working with R.

http://petewerner.blogspot.com/2012/12/using-apply-sapply-lapply-in-r.html

Posted by Imalsha Hewavidana



No comments:

Post a Comment