[R] Google's R Style Guide
kingsfordjones at gmail.com
Fri Aug 28 22:59:44 CEST 2009
A few thoughts:
-- As for naming preferences, in an interactive R session or answering
an R-help question I'm glad I can type
lm(log(y) ~ atan(x))
FitLinearModel(CalculateNaturalLogarithm(y) ~ CalculateInverseTangent(x))
-- For consistency, their function makeColName(...) should be MakeColName(...)
-- I was happy to see promotion of "<-". Reading code using '=' for
both object assignment and argument setting is a little like
fingernails on a blackboard...again and again and...
-- It's nice that people have made these guides available
On Fri, Aug 28, 2009 at 6:59 AM, Esmail<esmail.js at gmail.com> wrote:
> Perhaps most of you have already seen this?
> ps: Reminds me of PEP 8 for Python
> Maybe not that surprising since Python is also one of the main languages
> used by Google.
> R-help at r-project.org mailing list
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help