style_guide.md

Style Guide

The style guide is only slightly modified from Hadley Wickham's style guide in his Advanced R book. The modifications are presented here.

Naming

Variable and Function Names

Hadley's guide says to make all function and variable names lowercase, and that variable names should be nouns and function names verbs. The only modification is that function names can be nouns (e.g. also()) or verbs (e.g. bag_features()). Function names as nouns are acceptable under the following conditions:

# Good
get_features()
also()
iso_tree()

# Bad
getFeatures()
ALSO()


dannymorris/outsiders documentation built on May 13, 2019, 1:22 p.m.