Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

quality R code to learn form

Tags:

r

I would like to find the 5 top programmed R packages regarding code quality.

Looking at the code I want to learn how to improve. Many packages are not very well programmed, unfortunately. Recently I more and more use the Map(), Reduce() and Filter() functions, and that already produces better code.

like image 820
mrsteve Avatar asked Oct 14 '22 17:10

mrsteve


1 Answers

First, I would recommend reading through this thread in quite the same subject on stat.stackexchange.com where the "winner" package was the zoo package.

Besides the concrete answers found on stackexchange, I would also reccomend looking around on github and R-forge, as lot of source can be studied online. Look for repositories tagged with R.

Another approach could be to find a package what was written with the aid of Roxygen, as we can suppose, that the author was up to make a package with correct documentation :)

Anyway, I would definitely suggest to look for the packages of @hadley also, as he wrote quite a lot packages: smaller and bigger ones also, besides you can find some other R resources in his github repositories.

like image 90
daroczig Avatar answered Oct 18 '22 03:10

daroczig