The State of Naming Conventions in R

Most programming language communities have naming conventions that are generally agreed upon, that is, a set of rules that governs how functions and variables are named. This is not the case with R, and a review of unofficial style guides and naming convention usage on CRAN shows that a number of different naming conventions are currently in use. Some naming conventions are, however, more popular than others and as a newcomer to the R community or as a developer of a new package this could be useful to consider when choosing what naming convention to adopt.

Rasmus Bååth
2012-12-01

Reuse

Text and figures are licensed under Creative Commons Attribution CC BY 4.0. The figures that have been reused from other sources don't fall under this license and can be recognized by a note in their caption: "Figure from ...".

Citation

For attribution, please cite this work as

Bååth, "The State of Naming Conventions in R", The R Journal, 2012

BibTeX citation

@article{RJ-2012-018,
  author = {Bååth, Rasmus},
  title = {The State of Naming Conventions in R},
  journal = {The R Journal},
  year = {2012},
  note = {https://doi.org/10.32614/RJ-2012-018},
  doi = {10.32614/RJ-2012-018},
  volume = {4},
  issue = {2},
  issn = {2073-4859},
  pages = {74-75}
}