Site icon R-bloggers

google R style guide

[This article was first published on Tony's bubble universe » R, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

After writing several hundreds of lines of R codes, I start to pay some attention to my coding style. Fortunately, I find a document about R style guide in google code. Surprisingly, R is among the most popular programming languages, such as C++, objective-C, python, java and html. I didn’t realize R has become so popular; I thought it was just a statistical language used by a small group of geek researchers who wouldn’t even show up in public during the daytime. Now, I’m glad that R is accepted by more and more people. Even the Guardian datablog is using R to present their data. What a choice! 

In the google style guide, there are listed 14 R style rules and 3 more R language rules. I’ll introduce some rules in the following as these were actually my issues:

To leave a comment for the author, please follow the link and comment on their blog: Tony's bubble universe » R.

R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.