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]]

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to