Good practices

To ensure a working, shareable and (re)readable code, anyone working with R should follow some good practices.

When working with RStudio, RStudio stores all the variables in the memory. For consistency, I believe it is safer to clean all those variable before launching any new, unrelated R code.

To do so:

closeAllConnections()
rm(list=ls())

Good commenting allows the code to be readable by others, and by oneself when some time has passed.

Use RStudio!

Enter your comment. Wiki syntax is allowed:
If you can't read the letters on the image, download this .wav file to get them read to you.
 
  • Last modified: 7 weeks ago
  • by Olivier Simard-Casanova