<div dir="ltr">Por favor envie um CMR para que se possa identificar o problema.<div><br></div><div>O código acima não é reproduzível . . .</div><div><br></div><div>Como se vê no rodapé de todas as postagens neste grupo, o guia indica como fazê-lo caso lhe sobre alguma dúvida.</div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Sep 13, 2022 at 3:15 PM Bruce Kelly por (R-br) <<a href="mailto:r-br@listas.c3sl.ufpr.br">r-br@listas.c3sl.ufpr.br</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="msg-3637623146719658512">




<div dir="ltr">
<div align="left">
<p style="line-height:100%;margin-bottom:0cm;background:none 0% 0% repeat scroll transparent">
Boa tarde listeiros,</p>
<p style="line-height:100%;margin-bottom:0cm;background:none 0% 0% repeat scroll transparent">
<br>
</p>
<p style="line-height:100%;margin-bottom:0cm;background:none 0% 0% repeat scroll transparent">
Estou uma base de dados que tem a coluna TIMESTAMP em ymd_hms, estou criando as colunas meses, dia e hora. Da seguinte forma:</p>
<p style="line-height:100%;margin-bottom:0cm;background:none 0% 0% repeat scroll transparent">
<br>
</p>
<p style="line-height:100%;margin-bottom:0cm;background:none 0% 0% repeat scroll transparent">
input$Year<-format(input2$TIMESTAMP, '%Y')</p>
<p style="line-height:100%;margin-bottom:0cm;background:none 0% 0% repeat scroll transparent">
input$Month<-format(input2$TIMESTAMP, '%m')</p>
<p style="line-height:100%;margin-bottom:0cm;background:none 0% 0% repeat scroll transparent">
input$Day<-format(input2$TIMESTAMP, '%d')</p>
<p style="line-height:115%;margin-bottom:0.5cm;background:none 0% 0% repeat scroll transparent">
input$Hour.S<-formart(input$TIMESTAMP, ‘%H’)</p>
<p style="line-height:115%;margin-bottom:0.5cm;background:none 0% 0% repeat scroll transparent">
No entanto, a coluna da hora aparece zerada. Lembrando que fiz a conversão de string para data:
</p>
<p style="line-height:100%;margin-bottom:0.5cm;background:none 0% 0% repeat scroll transparent">
input$TIMESTAMP<- as.Date(ymd_hms(input$TIMESTAMP))</p>
<p style="line-height:100%;margin-bottom:0.5cm;background:none 0% 0% repeat scroll transparent">
input2$TIMESTAMP<- as.Date(input$TIMESTAMP)</p>
<p style="line-height:100%;margin-bottom:0.5cm;background:none 0% 0% repeat scroll transparent">
Ambas meu resultado é 00. Eu preciso que minha saída seja de 00-24, por exemplo, 0.5;1;1.5;...23.5</p>
<p style="line-height:100%;margin-bottom:0.5cm;background:none 0% 0% repeat scroll transparent">
Muito Obrigados a todos(@s)<br>
</p>
</div>
<div align="left"><font style="font-size:12pt" size="3" face="Franklin Gothic Medium"><font face="Times New Roman"><span style="font-family:Calibri,Arial,Helvetica,sans-serif;color:rgb(0,111,201)"></span><span style="font-family:Calibri,Arial,Helvetica,sans-serif;color:rgb(0,111,201)"></span><br>
</font></font></div>
<div align="left"><font style="font-size:12pt" size="3" face="Franklin Gothic Medium"><font face="Times New Roman"></font></font></div>
<div>
<div id="m_-4558947553928002782Signature">
<div>
<div id="m_-4558947553928002782divtagdefaultwrapper" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Arial,Helvetica,sans-serif">
<div align="center"><font style="font-size:12pt" size="3" face="Franklin Gothic Medium"><font face="Times New Roman"><br>
</font><b><br>
</b></font></div>
</div>
</div>
</div>
</div>
</div>

_______________________________________________<br>
R-br mailing list<br>
<a href="mailto:R-br@listas.c3sl.ufpr.br" target="_blank">R-br@listas.c3sl.ufpr.br</a><br>
<a href="https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br" rel="noreferrer" target="_blank">https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br</a><br>
Leia o guia de postagem (<a href="http://www.leg.ufpr.br/r-br-guia" rel="noreferrer" target="_blank">http://www.leg.ufpr.br/r-br-guia</a>) e forneça código mínimo reproduzível.<br>
</div></blockquote></div>