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. I would be grateful for suggestions on how best to do this. Thanks, rcoder -- View this message in context: http://www.nabble.com/Mapping-data-onto-1-10-score-tp18463694p18463694.html Sent from the R help mailing list archive at Nabble.com.
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