Hello, I'd like to normalize a data frame which are "45000 obs. of 212 variables".I want to normalize the data frame by each row. But I failed.Here is my R code, can you tell me where am I wrong? > bb<-function(normalize) (dat[i,]-min(dat[i,]))/(max(dat[i,])-min(dat[i,]))> dat1<-apply(dat,1,bb) Thanks!! vie _________________________________________________________________
[[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.