I would like to create an variable *x* that receives *3*. It is created another scope, where *x* receives *1*. But, as the scope ends, *x* value will return to 3. How can I do it?

What I mean is shown in the code below. I would like to do something like this:

```
x <- 3
{x = 1
print (x)}  //{} Is the way I thought to make x=1 be in another scope 
print (x)

```

That has the output as this:

```
[1] 1
[1] 1

```

But I would like the output to be:

```
[1] 1
[1] 3

```