You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If many names point to the same object, they will be all modified, which is not the default behaviour of base R.
(X <- runif(4))
X2 <- X
X %*<-% 2
X
X2
I wanted to use something like x[1] <- x[1] + 0L to make a copy of x if multiple names referred to the same objects in memory so that the other are not modified.
Yet, in RStudio, there are references (due to the object explorer?) so that I would make copies all the time.
If many names point to the same object, they will be all modified, which is not the default behaviour of base R.
I wanted to use something like
x[1] <- x[1] + 0L
to make a copy ofx
if multiple names referred to the same objects in memory so that the other are not modified.Yet, in RStudio, there are references (due to the object explorer?) so that I would make copies all the time.
See https://community.rstudio.com/t/in-place-modification-doesnt-work-in-rstudio/9407?u=privefl.
The text was updated successfully, but these errors were encountered: