When replacing an element in a vector such as
a <- 1:1000000
a[1] <- 2
R copies the whole vector, replaces the element in the new vector, and then do the variable name re-association. I was wondering anyway to override or prevent this to make it behave something more like c array?
Thanks
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With