Skip to content
Prev 127436 / 398500 Next

resclaing/resampling data

Jim Lemon wrote:
Oops, didn't read that properly:
newmat2<-cbind(rescale(mat2[,1],c(1,6)),
  rescale(mat2[,2],c(min(mat2[,2],max(mat2[,2])*6/7)))

and you can make it general by substituting:

max(mat1[,1])/max(mat2[,1]) for 6/7

Jim