<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Olá Rodrigo Coster!<br>
<br>
<br>
É isto mesmo que você solicitou?<br>
<br>
<br>
<br>
> dput(head(sp))<br>
structure(c(38795229L, 63924605L, 0L, 0L, 0L, 0L, 33680798L, <br>
51477786L, 0L, 0L, 0L, 0L, 32400472L, 39645654L, 0L, 0L, 0L, <br>
0L, 68022854L, 56066200L, 0L, 0L, 0L, 0L, 31881633L, 67045744L, <br>
0L, 0L, 0L, 0L, 452118806L, 500158705L, 0L, 0L, 0L, 0L, 21795038L, <br>
13562364L, 0L, 0L, 0L, 0L, 2730838L, 4259594L, 0L, 0L, 0L, 0L, <br>
103132447L, 85622631L, 0L, 0L, 0L, 0L, 60353896L, 61121454L, <br>
0L, 0L, 0L, 0L, 32403301L, 40519152L, 0L, 0L, 0L, 0L, 116570336L, <br>
110079499L, 0L, 0L, 0L, 0L, 166832925L, 149309546L, 0L, 0L, 0L, <br>
0L, 78060254L, 101650482L, 0L, 0L, 0L, 0L, 25985390L, 36699369L, <br>
0L, 0L, 0L, 0L, 69222831L, 80306324L, 0L, 0L, 0L, 0L, 4392027L, <br>
4567085L, 0L, 0L, 0L, 0L, 33752865L, 41537988L, 0L, 0L, 0L, 0L, <br>
80216802L, 88982746L, 0L, 0L, 0L, 0L, 1489612L, 1465175L, 0L, <br>
0L, 0L, 0L, 60973115L, 54078115L, 0L, 0L, 0L, 0L, 28441802L, <br>
50033001L, 0L, 0L, 0L, 0L, 60420736L, 17987780L, 0L, 0L, 0L, <br>
0L, 28824716L, 48507914L, 0L, 0L, 0L, 0L, 444712L, 328451L, 0L, <br>
0L, 0L, 0L, 786654L, 838397L, 0L, 0L, 0L, 0L, 12933000L, 10051098L,
<br>
0L, 0L, 0L, 0L, 39827569L, 45256447L, 0L, 0L, 0L, 0L, 58803226L, <br>
76290276L, 0L, 0L, 0L, 0L, 46468076L, 38537192L, 0L, 0L, 0L, <br>
0L, 53314093L, 33200142L, 0L, 0L, 0L, 0L, 34642085L, 23556561L, <br>
0L, 0L, 0L, 0L, 119213241L, 121005345L, 0L, 0L, 0L, 0L, 274982262L,
<br>
244713051L, 0L, 0L, 0L, 0L, 74376824L, 35888744L, 0L, 0L, 0L, <br>
0L, 2144991L, 2440378L, 0L, 0L, 0L, 0L, 114384520L, 74615518L, <br>
0L, 0L, 0L, 0L, 54130383L, 62022477L, 0L, 0L, 0L, 0L, 3340357L, <br>
4785296L, 0L, 0L, 0L, 0L, 3396350L, 3538952L, 0L, 0L, 0L, 0L, <br>
7356480L, 6493192L, 0L, 0L, 0L, 0L, 30067652L, 34811828L, 0L, <br>
0L, 0L, 0L, 10236714L, 14744233L, 0L, 0L, 0L, 0L, 21064904L, <br>
28239710L, 0L, 0L, 0L, 0L, 5987416L, 9771117L, 0L, 0L, 0L, 0L, <br>
16779486L, 11925052L, 0L, 0L, 0L, 0L, 9060866L, 13985017L, 0L, <br>
0L, 0L, 0L, 15448503L, 24449350L, 0L, 0L, 0L, 0L, 8407209L,
20023742L, <br>
0L, 0L, 0L, 0L, 38288341L, 43777071L, 0L, 0L, 0L, 0L, 610282312L, <br>
508090709L, 0L, 0L, 0L, 0L), .Dim = c(6L, 51L), .Dimnames = list(<br>
NULL, c("sp1", "sp2", "sp3", "sp4", "sp5", "sp6", "sp7", <br>
"sp8", "sp9", "sp10", "sp11", "sp12", "sp13", "sp14", "sp15", <br>
"sp16", "sp17", "sp18", "sp19", "sp20", "sp21", "sp22", "sp23",
<br>
"sp24", "sp25", "sp26", "sp27", "sp28", "sp29", "sp30", "sp31",
<br>
"sp32", "sp33", "sp34", "sp35", "sp36", "sp37", "sp38", "sp39",
<br>
"sp40", "sp41", "sp42", "sp43", "sp44", "sp45", "sp46", "sp47",
<br>
"sp48", "sp49", "sp50", "sp51")))<br>
<br>
<br>
<br>
<br>
<br>
<div class="moz-cite-prefix">Em 08-04-2014 18:37, Rodrigo Coster
escreveu:<br>
</div>
<blockquote
cite="mid:CAKU4wovPiJ2dNq906_hZzDub2DNwHZioLwZ0rPvkLYY=8PS-Yg@mail.gmail.com"
type="cite">
<div dir="ltr">Sem saber como são os teus dados fica complicado a
gente de dar um comando que certamente funcionará... da um
dput(head(dados)) e nos envia o que aparecer na tela</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">
2014-04-08 18:34 GMT-03:00 Daniel C Bezerra <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:danielcbezerra@gmail.com" target="_blank">danielcbezerra@gmail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">apply(nomedobanco,2,sum)<br>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">2014-04-08 18:07 GMT-03:00
Alexandre Loures <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:alexandre.loures@ymail.com"
target="_blank">alexandre.loures@ymail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div class="h5">
<div bgcolor="#FFFFFF" text="#000000"> Olá
pessoal!<br>
<br>
Tenho uma base de dados com 216 observações de
10 variáveis. Sendo que essas observações são
mensais, mas tenho que trabalhar com o total
anual.<br>
<br>
Ou seja, eu tenho dados para os meses de 1997,
1998, 1999, 2000, ..., 2014. Mas quero os totais
desses anos em cada coluna.<br>
<br>
Alguém saberia como fazer isso?<br>
<br>
<br>
<br>
Desde já muito obrigado!<span><font
color="#888888"><br>
<br>
<br>
<br>
<div>-- <br>
<font size="1"><b>Alexandre Rodrigues
Loures</b><br>
</font></div>
</font></span></div>
<br>
</div>
</div>
_______________________________________________<br>
R-br mailing list<br>
<a moz-do-not-send="true"
href="mailto:R-br@listas.c3sl.ufpr.br"
target="_blank">R-br@listas.c3sl.ufpr.br</a><br>
<a moz-do-not-send="true"
href="https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br"
target="_blank">https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br</a><br>
Leia o guia de postagem (<a moz-do-not-send="true"
href="http://www.leg.ufpr.br/r-br-guia"
target="_blank">http://www.leg.ufpr.br/r-br-guia</a>)
e forneça código mínimo reproduzível.<br>
</blockquote>
</div>
<br>
</div>
<br>
_______________________________________________<br>
R-br mailing list<br>
<a moz-do-not-send="true"
href="mailto:R-br@listas.c3sl.ufpr.br">R-br@listas.c3sl.ufpr.br</a><br>
<a moz-do-not-send="true"
href="https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br"
target="_blank">https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br</a><br>
Leia o guia de postagem (<a moz-do-not-send="true"
href="http://www.leg.ufpr.br/r-br-guia" target="_blank">http://www.leg.ufpr.br/r-br-guia</a>)
e forneça código mínimo reproduzível.<br>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
R-br mailing list
<a class="moz-txt-link-abbreviated" href="mailto:R-br@listas.c3sl.ufpr.br">R-br@listas.c3sl.ufpr.br</a>
<a class="moz-txt-link-freetext" href="https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br">https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br</a>
Leia o guia de postagem (<a class="moz-txt-link-freetext" href="http://www.leg.ufpr.br/r-br-guia">http://www.leg.ufpr.br/r-br-guia</a>) e forneça código mínimo reproduzível.</pre>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<font size="1"><b>Alexandre Rodrigues Loures</b><br>
</font></div>
</body>
</html>