<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:10px"><div id="yui_3_16_0_1_1427587844551_5228" dir="ltr"><span id="yui_3_16_0_1_1427587844551_5274"><span id="yui_3_16_0_1_1427587844551_5422"><font face="times new roman, new york, times, serif" size="3" id="yui_3_16_0_1_1427587844551_5462">Pessoal tenho estes dados dentro do R, gostaria de criar um outro banco com a soma de cada item dos estados ao longo destes 10 anos. </font></span></span></div><div id="yui_3_16_0_1_1427587844551_5228" dir="ltr"><span><span><font face="times new roman, new york, times, serif" size="3"><br></font></span></span></div><div id="yui_3_16_0_1_1427587844551_5228" dir="ltr"><span><span><font face="times new roman, new york, times, serif" size="3"><br></font></span></span></div><div id="yui_3_16_0_1_1427587844551_5228" dir="ltr"><span id="yui_3_16_0_1_1427587844551_5576"><font size="5" id="yui_3_16_0_1_1427587844551_5673">str(dados)</font><br></span></div><div></div><div id="yui_3_16_0_1_1427587844551_5229"> <span style="font-family: 'Ubuntu Mono'; font-size: 10.4pt; line-height: 1.2; white-space: pre-wrap; background-color: rgb(225, 226, 229);" class="" id="yui_3_16_0_1_1427587844551_5241">data.frame': 270 obs. of 7 variables:</span></div><span class="" style="border-collapse: separate; border-spacing: 0px; background-color: rgb(225, 226, 229);" id="yui_3_16_0_1_1427587844551_5278"><pre tabindex="0" class="" id="rstudio_console_output" style="font-family: 'Ubuntu Mono'; font-size: 10.4pt !important; line-height: 1.2; white-space: pre-wrap; outline: none; border: none; border-image-source: initial; border-image-slice: initial; border-image-width: initial; border-image-outset: initial; border-image-repeat: initial; word-break: break-all; margin-top: 0px; margin-bottom: 0px; -webkit-user-select: text;"> $ ANO : int 2005 2005 2005 2005 2005 2005 2005 2005 2005 2005 ...
$ UF : Factor w/ 27 levels "AC","AL","AM",..: 1 2 3 4 5 6 7 8 9 10 ...
$ OURO : int 0 1 2 0 15 14 7 7 2 0 ...
$ PRATA : int 15 15 15 15 15 15 15 15 15 15 ...
$ BRONZE: int 15 15 15 15 15 15 15 15 15 15 ...
$ MENCAO: int 136 543 718 98 2976 2242 306 377 859 830 ...
$ TOTAL : int 166 574 750 128 3021 2286 343 414 891 860 ...</pre><pre tabindex="0" class="" id="rstudio_console_output" style="outline: none; border: none; border-image-source: initial; border-image-slice: initial; border-image-width: initial; border-image-outset: initial; border-image-repeat: initial; word-break: break-all; margin-top: 0px; margin-bottom: 0px; -webkit-user-select: text;"><font face="Ubuntu Mono" class="" style="" id="yui_3_16_0_1_1427587844551_5638"><span style="line-height: 16.6399993896484px;" class="" id="yui_3_16_0_1_1427587844551_5637"><font size="5">head(dados)</font></span><span style="font-size: 10.4pt !important; line-height: 1.2;" class=""><br></span></font></pre><pre tabindex="0" class="" id="rstudio_console_output" style="font-family: 'Ubuntu Mono'; font-size: 10.4pt !important; line-height: 1.2; white-space: pre-wrap; outline: none; border: none; border-image-source: initial; border-image-slice: initial; border-image-width: initial; border-image-outset: initial; border-image-repeat: initial; word-break: break-all; margin-top: 0px; margin-bottom: 0px; -webkit-user-select: text;"><span class="" style="border-collapse: separate; font-size: 12px; line-height: normal; white-space: normal; border-spacing: 0px;" id="yui_3_16_0_1_1427587844551_5551"><table cellspacing="0" cellpadding="0" class="" style="padding-left: 6px; padding-bottom: 8px; border: none; outline: none; word-wrap: break-word; cursor: text; width: 597px; font-family: inherit !important; font-style: inherit !important; font-variant: inherit !important; font-weight: inherit !important; font-stretch: inherit !important; line-height: inherit !important; white-space: pre-wrap !important; font-size: 10.4pt !important;" id="yui_3_16_0_1_1427587844551_5550"><tbody class="" style="" id="yui_3_16_0_1_1427587844551_5549"><tr class="" style="" id="yui_3_16_0_1_1427587844551_5548"><td align="left" style="line-height: 1.2; vertical-align: top; font-size: 10.4pt !important;" class="" id="yui_3_16_0_1_1427587844551_5547"><pre tabindex="0" class="" id="rstudio_console_output" style="font-family: 'Ubuntu Mono'; outline: none; border: none; word-break: break-all; margin-top: 0px; margin-bottom: 0px; -webkit-user-select: text; line-height: 1.2; font-size: 10.4pt !important;">ANO UF OURO PRATA BRONZE MENCAO TOTAL
1 2005 AC 0 15 15 136 166
2 2005 AL 1 15 15 543 574
3 2005 AM 2 15 15 718 750
4 2005 AP 0 15 15 98 128
5 2005 BA 15 15 15 2976 3021
6 2005 CE 14 15 15 2242 2286
</pre></td></tr><tr class="" style=""><td align="left" style="line-height: 1.2; vertical-align: top; font-size: 10.4pt !important;" class=""></td></tr><tr class="" style="" id="yui_3_16_0_1_1427587844551_5583"><td align="left" style="line-height: 1.2; vertical-align: top; font-size: 10.4pt !important;" class="" id="yui_3_16_0_1_1427587844551_5582"><table cellspacing="0" cellpadding="0" style="width: 597px; " class="" id="yui_3_16_0_1_1427587844551_5581"><tbody class="" style="" id="yui_3_16_0_1_1427587844551_5580"><tr class="" style="" id="yui_3_16_0_1_1427587844551_5579"><td align="left" width="1" height="" rowspan="1" style="line-height: 1.2; vertical-align: top; font-size: 10.4pt !important;" class="" id="yui_3_16_0_1_1427587844551_5578"><div class="" style="white-space: pre; -webkit-user-select: text; color: blue; " id="yui_3_16_0_1_1427587844551_5577">> </div><div class="" style="white-space: pre; -webkit-user-select: text; color: blue; " id="yui_3_16_0_1_1427587844551_5584"><br></div><div class="" style="white-space: pre; -webkit-user-select: text; color: blue; " id="yui_3_16_0_1_1427587844551_5585"><br></div><div class="" style="white-space: pre; -webkit-user-select: text; color: blue; " id="yui_3_16_0_1_1427587844551_5586"><br></div></td></tr></tbody></table></td></tr></tbody></table></span></pre><pre tabindex="0" class="" id="rstudio_console_output" style="font-family: 'Ubuntu Mono'; font-size: 10.4pt !important; line-height: 1.2; white-space: pre-wrap; outline: none; border: none; border-image-source: initial; border-image-slice: initial; border-image-width: initial; border-image-outset: initial; border-image-repeat: initial; word-break: break-all; margin-top: 0px; margin-bottom: 0px; -webkit-user-select: text;"><br class="" style=""></pre></span><div id="yui_3_16_0_1_1427587844551_5166"><div id="yui_3_16_0_1_1427587844551_5165">
<br>
<br>André Oliveira Souza.
<br>Graduação em Matemática, mestrado em estatística aplicada.Instituto Federal de Educação, Ciência e Tecnologia do Espirito Santo. IFES
<br>
<br></div></div></div></body></html>