Go to TogaWare.com Home Page. Data Science Desktop Survival Guide
by Graham Williams
Duck Duck Go



CLICK HERE TO VISIT THE UPDATED SURVIVAL GUIDE

Naming Objects

20201102

resume
Function names use underscores to separate verbs.

Preferred

display_plot_again()

Discouraged

DisplayPlotAgain()
displayplotagain()
display.plot.again()

Variable names use underscore separated nouns. A very common alternative is to use a period in place of the underscore. However, the period is often used to identify class hierarchies in R and the period has specific meanings in many database systems which presents an issue when importing from and exporting to databases. See Section 9.14 to rename variables automatically. Preferred

num_frames <- 10

Discouraged

num.frames <- 10
numframes  <- 10
numFrames  <- 10


Support further development by purchasing the PDF version of the book.
Other online resources include the GNU/Linux Desktop Survival Guide.
Books available on Amazon include Data Mining with Rattle and Essentials of Data Science.
Popular open source software includes rattle and wajig.
Hosted by Togaware, a pioneer of free and open source software since 1984.
Copyright © 2000-2020 Togaware Pty Ltd. . Creative Commons ShareAlike V4.