<div class="gmail_quote">
<p>Prezados colegas,</p>
<div>Como faço para criar uma variável em um dataframe que seja soma acumulada de outra variável?</div>
<div> </div>
<div>
<table style="WIDTH:160pt;BORDER-COLLAPSE:collapse" border="0" cellspacing="0" cellpadding="0" width="212">
<colgroup>
<col style="WIDTH:48pt" width="64">
<col style="WIDTH:56pt" span="2" width="74">
<tbody>
<tr style="MIN-HEIGHT:12.75pt" height="17">
<td style="BORDER-BOTTOM:#ece9d8;BORDER-LEFT:#ece9d8;BACKGROUND-COLOR:transparent;MIN-HEIGHT:12.75pt;WIDTH:48pt;BORDER-TOP:#ece9d8;BORDER-RIGHT:#ece9d8" height="17" width="64"><font face="MS Sans Serif">i</font></td>
<td style="BORDER-BOTTOM:#ece9d8;BORDER-LEFT:#ece9d8;BACKGROUND-COLOR:transparent;WIDTH:56pt;BORDER-TOP:#ece9d8;BORDER-RIGHT:#ece9d8" width="74"><font face="MS Sans Serif">Xi</font></td>
<td style="BORDER-BOTTOM:#ece9d8;BORDER-LEFT:#ece9d8;BACKGROUND-COLOR:transparent;WIDTH:56pt;BORDER-TOP:#ece9d8;BORDER-RIGHT:#ece9d8" width="74"><font face="MS Sans Serif">Yi</font></td></tr>
<tr style="MIN-HEIGHT:12.75pt" height="17">
<td style="BORDER-BOTTOM:#ece9d8;BORDER-LEFT:#ece9d8;BACKGROUND-COLOR:transparent;MIN-HEIGHT:12.75pt;BORDER-TOP:#ece9d8;BORDER-RIGHT:#ece9d8" height="17"><font face="MS Sans Serif">1</font></td>
<td style="BORDER-BOTTOM:#ece9d8;BORDER-LEFT:#ece9d8;BACKGROUND-COLOR:transparent;BORDER-TOP:#ece9d8;BORDER-RIGHT:#ece9d8"><font face="MS Sans Serif">a</font></td>
<td style="BORDER-BOTTOM:#ece9d8;BORDER-LEFT:#ece9d8;BACKGROUND-COLOR:transparent;BORDER-TOP:#ece9d8;BORDER-RIGHT:#ece9d8"><font face="MS Sans Serif">a</font></td></tr>
<tr style="MIN-HEIGHT:12.75pt" height="17">
<td style="BORDER-BOTTOM:#ece9d8;BORDER-LEFT:#ece9d8;BACKGROUND-COLOR:transparent;MIN-HEIGHT:12.75pt;BORDER-TOP:#ece9d8;BORDER-RIGHT:#ece9d8" height="17"><font face="MS Sans Serif">2</font></td>
<td style="BORDER-BOTTOM:#ece9d8;BORDER-LEFT:#ece9d8;BACKGROUND-COLOR:transparent;BORDER-TOP:#ece9d8;BORDER-RIGHT:#ece9d8"><font face="MS Sans Serif">b</font></td>
<td style="BORDER-BOTTOM:#ece9d8;BORDER-LEFT:#ece9d8;BACKGROUND-COLOR:transparent;BORDER-TOP:#ece9d8;BORDER-RIGHT:#ece9d8"><font face="MS Sans Serif">a+b</font></td></tr>
<tr style="MIN-HEIGHT:12.75pt" height="17">
<td style="BORDER-BOTTOM:#ece9d8;BORDER-LEFT:#ece9d8;BACKGROUND-COLOR:transparent;MIN-HEIGHT:12.75pt;BORDER-TOP:#ece9d8;BORDER-RIGHT:#ece9d8" height="17"><font face="MS Sans Serif">3</font></td>
<td style="BORDER-BOTTOM:#ece9d8;BORDER-LEFT:#ece9d8;BACKGROUND-COLOR:transparent;BORDER-TOP:#ece9d8;BORDER-RIGHT:#ece9d8"><font face="MS Sans Serif">c</font></td>
<td style="BORDER-BOTTOM:#ece9d8;BORDER-LEFT:#ece9d8;BACKGROUND-COLOR:transparent;BORDER-TOP:#ece9d8;BORDER-RIGHT:#ece9d8"><font face="MS Sans Serif">a+b+c</font></td></tr></tbody></colgroup></table></div>
<div> </div>
<div>Obrigado.</div></div><br>