What happens when you assign a value to a variable that already exists in R?
- None of the above
- R returns an error
- The old value is preserved and a new variable is created
- The old value is replaced with the new value
When you assign a new value to a variable that already exists in R, the old value is replaced with the new one. This is because variable assignment in R does not preserve previous values.
Loading...