Try this, library(ggplot2)
apply(matrix(10*rnorm(10),2), 1, ggplot2::rescale) HTH, baptiste 2009/9/28 Dry, Jonathan R <jonathan....@astrazeneca.com>: > Hello all > > I have a data frame representing a matrix of data. For each of my variables > (rows) I want to scale the data between 0 (representing the minimum value in > that row) and 1 (representing the maximum value in that row). I was > wondering if there is a simple function anywhere that does this? > > Jonathan > > > > -------------------------------------------------------------------------- > AstraZeneca UK Limited is a company incorporated in Engl...{{dropped:21}} > > ______________________________________________ > 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. > ______________________________________________ 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.