Hi,I want to replace some elements of a dataframe "a", using 2 index vectors ("x" and "y") and a vector of replacement ("z") of the same length of "x" and "y".
I've tried a[cbind(x,y)]<-z, but it doesn't work.How can I do it in a simply way?Thanks,

                                                                                                 Marco

	[[alternative HTML version deleted]]


