Skip to content
Prev 170950 / 398503 Next

Re place Values within vector using Translation vector

On 18/02/2009 4:24 PM, Christian Langkamp wrote:
Since your Trans_CR contains 1:3, this says the first 3 entries of x 
will be replaced, and that's what happened.

What you want is simply

A <- Trans_Prob_values[a]

(assuming that the indices are always in 1:x, and that Trans_Prob_values 
will have x values in it).

Duncan Murdoch


  by those given