On Tue, 2008-07-15 at 05:16 -0700, rcoder wrote: > Hi everyone, > > I want to score a set of data (-ve to +ve) using a 0-10 scale. I have the > data in an R matrix, so I need to add another column, containing the scores > and resave. > Hi rcoder, Maybe rescale (plotrix package) is what you want:
testmat<-matrix(rnorm(10),ncol=1) testmat<-cbind(testmat[,1],rescale(testmat[,1],c(0,10))) testmat Jim ______________________________________________ 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.