Easy assignments with empty square brackets? x[]<-
问题 While looking at an answer posted recently on SO, I noticed an unfamiliar assignment statement. Instead of the usual form of myVar<- myValue , it used the for myVar[]<- myValue . Personally, I had never seen such an assignment, but it had a highly useful effect-- it reshaped the assigned data myValue to the shape of myVar. I would like to use this in my code. However the documentation for "<-" seems to be silent on it. Is this a well established feature and one can rely on it to work in all