search for: index_dff

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

2011 Jul 28
0
_: how to replace values in x by means in subgroups created in ...(not loops)
...0 0 1 1 1 # Value expected: #x_m # 1.5 1.5 1.5 3.0 5.0 5.0 5.0 7.0 8.0 9.0 #------------------------------------------------------- # author: me # replace_x_by_locallyMean_x_4_0s_in_y.f(x,y) #------------------------------------------------------- #initialisation Dff<-NULL index_Dff.start_0<-NULL index_Dff.stop_0<-NULL x<-NULL y<-NULL replace_x_by_locallyMean_x_4_0s_in_y.f<-NULL replace_x_by_locallyMean_x_4_0s_in_y.f<-function(x=Df$x, y=Df$y){ Dff<-as.data.frame(cbind(as.vector(x),as.vector(y))) colnames(Dff)<...