title: How levels(factorObject)[factorObject] generate complete vector?
body: <pre><code>vectorN = c("Hello","How","are","you","you","are","Hello")
  factorVectorN = factor(vectorN) 
  #Value of levels(factorVectorN) is c("are", "Hello", "How", "you")
  all(levels(factorVectorN)[factorVectorN] == vectorN) # returns TRUE
  </code></pre>
  
  <p>Can you please explain, how in above example <strong>levels(factorVectorN)[factorVectorN]</strong> create same vector as vectorN? </p>