<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:16px"><div style="" class=""><span style="" class="">Leonardo,</span></div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue-Light,Helvetica Neue Light,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><span style="" class="">obrigado mas deu erros!</span></div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue-Light,Helvetica Neue Light,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-style: normal;"><span class="" style="background-color: rgb(205, 35, 44);"><span style="" class="">Erro em summaryBy(glicose ~ peso, data = dados, FUN = c(mean, sd), FUN = function(x) cbind(mean(x),  : <br style="" class="">  argumento formal
 "FUN" corresponde a múltiplos argumentos especificados</span></span></div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue-Light,Helvetica Neue Light,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><br style="" class=""></div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue-Light,Helvetica Neue Light,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;">Seria o motivo como entrei com meus dados?</div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue-Light,Helvetica Neue Light,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><br style="" class=""><span style="" class=""></span></div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family:
 HelveticaNeue-Light,Helvetica Neue Light,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><span style="" class="">peso=scan(what= "as.character")<br style="" class="">Abaixodopeso<br style="" class="">Pesopadrão<br style="" class="">Acimadopeso<br style="" class="">Acimadopeso<br style="" class="">Obeso<br style="" class="">Acimadopeso<br style="" class="">Pesopadrão<br style="" class="">Abaixodopeso<br style="" class="">Abaixodopeso<br style="" class="">Acimadopeso<br style="" class="">Acimadopeso<br style="" class="">Obeso<br style="" class="">Pesopadrão<br style="" class="">Pesopadrão<br style="" class="">Pesopadrão<br style="" class="">Abaixodopeso<br style="" class="">Pesopadrão<br style="" class="">Obeso<br style="" class="">Pesopadrão<br style="" class="">Obeso<br style="" class="">Acimadopeso<br style="" class="">Abaixodopeso<br style="" class="">Pesopadrão<br style=""
 class="">Pesopadrão<br style="" class="">Abaixodopeso<br style="" class="">Pesopadrão<br style="" class="">Pesopadrão<br style="" class="">Obeso<br style="" class="">Acimadopeso<br style="" class="">Pesopadrão<br style="" class="">Acimadopeso<br style="" class="">Acimadopeso<br style="" class="">Abaixodopeso<br style="" class="">Pesopadrão<br style="" class="">Pesopadrão<br style="" class=""><br style="" class="">glicose=scan()<br style="" class="">60<br style="" class="">62<br style="" class="">130<br style="" class="">120<br style="" class="">219<br style="" class="">80<br style="" class="">85<br style="" class="">82<br style="" class="">90<br style="" class="">105<br style="" class="">100<br style="" class="">96<br style="" class="">96<br style="" class="">60<br style="" class="">61<br style="" class="">61<br style="" class="">100<br style="" class="">101<br style="" class="">85<br style="" class="">200<br style="" class="">210<br style=""
 class="">74<br style="" class="">76<br style="" class="">85<br style="" class="">98<br style="" class="">74<br style="" class="">89<br style="" class="">90<br style="" class="">105<br style="" class="">92<br style="" class="">78<br style="" class="">101<br style="" class="">78<br style="" class="">90<br style="" class="">58<br style="" class=""><br style="" class="">dados=data.frame(peso,glicose)<br style="" class="">dados<br style="" class="">str(dados)<br style="" class="">head(dados)<br style="" class="">attach(dados)</span></div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue-Light,Helvetica Neue Light,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><span style="" class="">require(doBy)<br style="" class=""></span></div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue-Light,Helvetica Neue Light,Helvetica
 Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><span style="" class="">summaryBy(glicose~peso,data=dados,FUN=c(mean,sd))<br style="" class="">Erro em FUN(X[[1L]], ...) : <br style="" class="">  não foi possível encontrar a função "currFUN"<br style="" class=""></span></div><div style="" class=""> </div><div style="" class="">
<br style="" class="">
<br style="" class="">André Oliveira Souza. 
<br style="" class="">Graduação em Matemática, mestrado em estatística aplicada.Instituto Federal de Educação, Ciência e Tecnologia do Espirito Santo.  IFES
<br style="" class="">
<br style="" class=""></div> <div class="qtdSeparateBR"><br><br></div><div style="display: block;" class="yahoo_quoted"> <div class="" style="font-family: HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div class="" style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div style="" class="" dir="ltr"> <font style="" class="" face="Arial" size="2"> Em Quarta-feira, 8 de Outubro de 2014 13:06, Leonardo Ferreira Fontenelle <leonardof@leonardof.med.br> escreveu:<br style="" class=""> </font> </div>  <br style="" class=""><br style="" class=""> <div style="" class=""><div style="" class="" id="yiv6108995610">


<title style="" class=""></title>

<div style="" class=""><div style="" class="">ou dependendo de como a By vai usar o retorno: FUN = function(x) cbind(mean(x), sd(x))<br style="" class=""></div>
<div style="" class=""> </div>
<div style="" class="" id="yiv6108995610sig4487139"><div style="" class="" id="yiv6108995610signature"><a style="" class="" rel="nofollow" target="_blank" href="http://lattes.cnpq.br/9234772336296638" title="Currículo Lattes">Leonardo Ferreira Fontenelle</a><br style="" class=""></div>
</div>
<div style="" class=""> </div>
<div style="" class=""> </div>
<div style="" class="">Em Qua 8 out. 2014, às 13:05, Leonardo Ferreira Fontenelle escreveu:<br style="" class=""></div>
<blockquote style="" class="" type="cite"><div style="" class="">Andre, não estou podendo instalar agora o doBy, mas por favor experimente: FUN = function(x) {print(mean(x)); print(sd(x))}<br style="" class=""></div>
<div style="" class=""> </div>
<div style="" class=""><div style="" class=""><a style="" class="" rel="nofollow" target="_blank" href="http://lattes.cnpq.br/9234772336296638" title="Currículo Lattes">Leonardo Ferreira Fontenelle</a><br style="" class=""></div>
</div>
<div style="" class=""> </div>
<div style="" class=""> </div>
<div style="" class="">Em Qua 8 out. 2014, às 07:57, Andre Oliveira escreveu:<br style="" class=""></div>
<blockquote style="" class="" type="cite"><div class="" style="color:#000;background-color:#fff;font-family:HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"><div class="" style=""><span class="" style="">Pessoal me socorre por favor,</span><br style="" class=""></div>
<div style="color:rgb(0, 0, 0);font-size:16px;font-family:HelveticaNeue-Light, 'Helvetica Neue Light', 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;font-style:normal;background-color:transparent;" class=""><span class="" style="">veja meu código que originou no erro esta abaixo. Alguém saberia dizer o motivo deste erro? Sempre usei para estratificar médias por tratamento e nunca me deparei com este erro. </span><br style="" class=""></div>
<div style="color:rgb(0, 0, 0);font-size:16px;font-family:HelveticaNeue-Light, 'Helvetica Neue Light', 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;font-style:normal;background-color:transparent;" class=""> </div>
<div style="background-color:transparent;" class="">dados=data.frame(peso,glicose)<br style="" class=""></div>
<div style="background-color:transparent;" class=""> </div>
<div style="background-color:transparent;" class="">dados<br style="" class=""></div>
<div style="color:rgb(0, 0, 0);font-size:16px;font-family:HelveticaNeue-Light, 'Helvetica Neue Light', 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;font-style:normal;background-color:transparent;" class=""> </div>
<pre class="" style="font-family:'Ubuntu Mono';font-size:10.4pt !important;outline-style:none;outline-color:initial;border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:none;border-color:initial;white-space:pre-wrap;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;line-height:1.2;"><span style="color:blue;" class="">str(dados)
</span>'data.frame':      35 obs. of  2 variables:
 $ peso   : Factor w/ 4 levels "Abaixodopeso",..: 1 4 2 2 3 2 4 1 1 2 ...
 $ glicose: num  60 62 130 120 219 80 85 82 90 105 ...<br style="" class=""></pre><pre class="" style="font-family:'Ubuntu Mono';font-size:10.4pt !important;outline-style:none;outline-color:initial;border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:none;border-color:initial;white-space:pre-wrap;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;line-height:1.2;"><br style="" class=""></pre><div style="background-color:transparent;" class="">require(doBy)<br style="" class=""></div>
<div style="background-color:transparent;" class=""> </div>
<div style="background-color:transparent;" class="">summaryBy(glicose~peso,data=dados,FUN=c(mean,sd))<br style="" class=""></div>
<div class="" style=""> </div>
<div class="" style=""> </div>
<div class="" style=""><span style="background-color:rgb(225, 226, 229);" class=""><span style="" class=""><span style="font-size:14px;" class=""><pre class="" style="font-family:'Ubuntu Mono';outline:none;border:none;margin-top:0px;margin-bottom:0px;line-height:1.2;font-size:10.4pt !important;"><span style="color:rgb(197, 6, 11);" class="">Erro em FUN(X[[1L]], ...) : 
não foi possível encontrar a função "currFUN"</span><br style="" class=""></pre><pre class="" style="font-family:'Ubuntu Mono';outline:none;border:none;margin-top:0px;margin-bottom:0px;line-height:1.2;font-size:10.4pt !important;"><span style="color:rgb(197, 6, 11);" class=""></span><br style="" class=""></pre><pre class="" style="font-family:'Ubuntu Mono';outline:none;border:none;margin-top:0px;margin-bottom:0px;line-height:1.2;font-size:10.4pt !important;"><span style="color:rgb(197, 6, 11);" class=""></span><br style="" class=""></pre></span></span></span> <br style="" class=""></div>
<div class="" style="">André Oliveira Souza. 
<br style="" class=""></div>
<div class="" style="">Graduação em Matemática, mestrado em estatística aplicada.Instituto Federal de Educação, Ciência e Tecnologia do Espirito Santo.  IFES
<br style="" class=""></div>
<div class="" style=""> </div>
</div>
<div style="" class=""><u style="" class="">_______________________________________________</u><br style="" class=""></div>
<div style="" class="">R-br mailing list<br style="" class=""></div>
<div style="" class=""><a style="" class="" rel="nofollow" ymailto="mailto:R-br@listas.c3sl.ufpr.br" target="_blank" href="mailto:R-br@listas.c3sl.ufpr.br">R-br@listas.c3sl.ufpr.br</a><br style="" class=""></div>
<div style="" class=""><a style="" class="" rel="nofollow" target="_blank" href="https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br">https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br</a><br style="" class=""></div>
<div style="" class="">Leia o guia de postagem (<a style="" class="" rel="nofollow" target="_blank" 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.<br style="" class=""></div>
</blockquote><div style="" class=""> </div>
</blockquote><div style="" class=""> </div>
</div>
</div><br style="" class="">_______________________________________________<br style="" class="">R-br mailing list<br style="" class=""><a style="" class="" ymailto="mailto:R-br@listas.c3sl.ufpr.br" href="mailto:R-br@listas.c3sl.ufpr.br">R-br@listas.c3sl.ufpr.br</a><br style="" class=""><a style="" class="" 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 style="" class="">Leia o guia de postagem (<a style="" class="" 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 style="" class=""><br style="" class=""></div>  </div> </div>  </div> </div></body></html>