title: Data Frames Looping R
body: <p>I have 136 data frames with multiples lenghts and 2 variables each: <code>compl001</code> to <code>compl136</code>. I've been trying to loop between them with no luck so
   far. I'm actually trying to make comparisons inside each data frame. There is a value set as "Há" or "Não Há". The main porblem I'm facing is that when I use paste to look betweem data.frames it is understoo as a character not a previous data.frame on my environment.</p>
  
  <p>It's something like that:</p>
  
  <pre><code>Min1     Min2
  Há       Há
  Não Há   Há
  Não Há   Não Há
  </code></pre>
  
  <p>My goal is to pick compl1 pass trough all it's length and if <code>compl001$Min1 = compl001$Min2</code> then a agreement counter increases by 1./</p>
  
  <pre><code>concc = 0
  discc = 0
  
  for (i in 1:136){
          ##Chosing the Min1 and Min2 names (it changes between data.frames but here it reveals NULL because understand paste as character)
      assign('parsel' ,colnames&lt;-(paste0("compl00", i))) 
  
      for (j in 1:length(paste0("compl00", i))){
  
        if ((assign("a",(paste0("compl00",i,'$',parsel[1],'[',j,']'))))==(assign('b',paste0("compl00",i,'$',parsel[2],'[',j+1,']'))))
        {concc = concc + 1}
       else
         {discc = discc + 1}
      }
  }
  </code></pre>