title: Error in Init statement, not sure of passing vector in viterbi
body: <pre><code>Error in E[, ] = emissionProbs[, ] :
    number of items to replace is not a multiple of replacement length
  Calls: initHMM
  </code></pre>
  
  <p>This is the warning coming.</p>
  
  <pre><code>library(HMM)
  
  transitions &lt;- read.table("/home/subjects/comp90016/assignments/assignment3/transitions.txt")
  
  emissions &lt;- read.table("/home/subjects/comp90016/assignments/assignment3/emissions.txt")
  
  hmm=initHMM(States=transitions[,1],Symbols=c("CP0","CP1","CP2","CP3","CP4"),transProbs=as.matrix(transitions),emissionProbs=as.matrix(emissions))
  
  
  results&lt;-viterbi(hmm,(my_vector[])[1]))
  print (results)
  </code></pre>
  
  <p>There is vector called my_vector.
  I am trying the following thing in Viterbi to derive a specific result but execution is getting halted due to the warning. Might be some other error while passing my_vector also.
  Thanks for helping.</p>