Problem:
How to define local variables within a scope in a r-code.
Example:
In C++ the following example defines a
You can create a new environment where your variable can be defined; this is how the local scope within a function is defined.
environment
You can read more about this here
check the help for environment as well i.e. type in your R console ?environment
?environment