Variable Names

  • Variable names in R are case-sensitive so x is not the same as X.
  • Variable names should not begin with numbers (e.g. 1x) or symbols (e.g. %x).
  • Variable names should not contain blank spaces: use back.pay (not back pay).

Get The R Book now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.