[R] value replacement in matrices
kjetil brinchmann halvorsen
kjetil at entelnet.bo
Mon Aug 4 21:20:01 CEST 2003
On 4 Aug 2003 at 10:10, Uwe Ligges wrote:
> George, Charles R wrote:
>
>
<snip>
> replace(originalMat, indexMat[,1], indexMat[,2])
Shouldnt that be
originalmat <- replace(originalMat, indexMat[,1], indexMat[,2])
?
Kjetil Halvorsen
>
> Uwe Ligges
>
>
> > the output would look like this:
> >
> > Final matrix
> > 5 5 7 3
> > 2 5 3 3
> > 7 5 5 3
> > 9 3 2 7
> >
> > At the moment it takes a while to process. Does anyone have any suggestions?
> >
> > reagrds
> >
> > Robert
> >
> >
> > ********************************DISCLAIMER******************...{{dropped}}
> >
> > ______________________________________________
> > R-help at stat.math.ethz.ch mailing list
> > https://www.stat.math.ethz.ch/mailman/listinfo/r-help
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
More information about the R-help
mailing list