Introduction
Variable assignment lets you store information to use later. In R, you can assign values using either <- or =.
When you want to save a number or text to use in calculations or display later.
When you need to keep track of results from a function for future use.
When you want to change or update the value stored in a variable.
When writing scripts that need to remember data between steps.