[R-es] funcion aggregate por mes

Javier Marcuzzi javier.ruben.marcuzzi en gmail.com
Mar Sep 5 23:19:21 CEST 2017


Estimado Javier Valdes Cantallopts

Yo creo que anduve por esos lados, no lo recuerdo en forma correcta para enviarle mi solución pero se puede y busque una en internet, mire las dos últimas opciones. (lo que puede dar trabajo es codificar correctamente la fecha)

https://stackoverflow.com/questions/7778234/aggregate-by-year-and-month-for-a-posix-variable

Javier Rubén Marcuzzi

De: Javier Valdes Cantallopts (DGA)
Enviado: martes, 5 de septiembre de 2017 18:09
Para: Carlos Ortega (cof en qualityexcellence.es)
CC: r-help-es en r-project.org
Asunto: [R-es] funcion aggregate por mes

Estimados:
Quería saber si alguno de uds ha podido realizar operación simples(sumar, media por ejemplo) usando la función AGGREGATE.
La idea es obtener los LA MEDIA de las T° por cada mes, desde una planilla de CON DATOS CADA 10 MINUTOS, La planilla base es algo así;


Fecha(día mes año)     temperatura
1-1-2013                  1
2-1-2013                  3
3-1-2013                 4,5
4-1-2013                  2
5-1-2013                  1 
6-1-2013                  3
1-2-2013                  2 
2-2-2014                  1        

Esta operación la realizo con ZOO Y xts, pero me interesaría saber si se puede hacer con AGGREGATE también.
Saludos.








CONFIDENCIALIDAD: La información contenida en este mensaje y/o en los archivos adjuntos es de carácter confidencial o privilegiada y está destinada al uso exclusivo del emisor y/o de la persona o entidad a quien va dirigida. Si usted no es el destinatario, cualquier almacenamiento, divulgación, distribución o copia de esta información está estrictamente prohibido y sancionado por la ley. Si recibió este mensaje por error, por favor infórmenos inmediatamente respondiendo este mismo mensaje y borre todos los archivos adjuntos. Gracias.

CONFIDENTIAL NOTE: The information transmitted in this message and/or attachments is confidential and/or privileged and is intented only for use of the person or entity to whom it is addressed. If you are not the intended recipient, any retention, dissemination, distribution or copy of this information is strictly prohibited and sanctioned by law. If you received this message in error, please reply us this same message and delete this message and all attachments. Thank you.

------------ próxima parte ------------
Se ha borrado un adjunto en formato HTML...
URL: <https://stat.ethz.ch/pipermail/r-help-es/attachments/20170905/f655e553/attachment-0001.html>
------------ próxima parte ------------
A non-text attachment was scrubbed...
Name: C5810B0A27E84F7CBA96B72FFDD7978A.png
Type: image/png
Size: 148 bytes
Desc: no disponible
URL: <https://stat.ethz.ch/pipermail/r-help-es/attachments/20170905/f655e553/attachment-0002.png>
------------ próxima parte ------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 33786 bytes
Desc: no disponible
URL: <https://stat.ethz.ch/pipermail/r-help-es/attachments/20170905/f655e553/attachment-0003.png>


Más información sobre la lista de distribución R-help-es