5.6 Names of objects

Naming objects in R is quite flexible. However, there are a few rules and good practices to consider:

  • Object names are case sensitive: object MyObject is not the same as myobject
  • They can contains both numbers or letters but should START with a letter, e.g. 2myobject is not a valid object name.
  • You can use underscores and points. Other special characters should be avoided.
  • Avoid using function names as object names.