search for: andattributes

Displaying 1 result from an estimated 1 matches for "andattributes".

Did you mean: addattributes
2010 Feb 17
1
side-effects in functions that replace object values and attributes
Hello list, I encountered some surprising behavior in R and wanted to check to see if I was imagining things. Previously, I thought that replacement/setter operators in prefix notation (e.g., `[<-`(x,1,y) rather than x[1] <- y) did not produce side effects (i.e., left 'x' unchanged), but just realized that this is not the case anymore (or has it always been this way? - I don't