Re: [R] replacing values in Array

2012-03-16 Thread uday
Hey Gerrit , Thanks your solution works -- View this message in context: http://r.789695.n4.nabble.com/replacing-values-in-Array-tp4468739p4477758.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list htt

Re: [R] replacing values in Array

2012-03-13 Thread Gerrit Eichner
Hello, "uday", e.g., (data - 1) %/% 3 + 1 would do the job in your very specific situation, but take a look at ?findInterval for possibly more interesting (because more general) solutions. Hth -- Gerrit On Tue, 13 Mar 2012, uday wrote: I want to replace some values in my Array e.g data<