Hola Carlos
Hace un tiempo atrás vimos una forma para *encontrar datos asociados
fechas que ?están saltadas?* o lo que serÃa lo mismo, *ENCONTRAR ?HUECOS?
EN UNA BASE DE DATOS*. Mira intenté hacerlo sobre una columna de formato(
%Y%M%d : %H%M%S%) O TIMESTAMP SEGÚN DETALLO ABAJO;
TEM<- read.table("TEMPANO.txt", header = T, sep = "\t")
library(lubridate)
library(lubridate)
ymd_hms(TEM$TIMESTAMP)
head(TEM)
tail(TEM)
dat_ref <- seq(from= min(TEM$TIMESTAMP, na.rm = FALSE), to
=max(TEM$TIMESTAMP,na.rm = FALSE), by=1)
dif_df <- dat_ref[!dat_ref%in%TEM$TIMESTAMP]
dif_df#
length(dif_df)
ERROR
dat_ref <- seq(from= min(TEM$TIMESTAMP, na.rm = FALSE), to
=max(TEM$TIMESTAMP,na.rm = FALSE), by=1)
Error in Summary.factor(c(15936L, 1L, 2L, 3L, 4L, 5L, 6L, 7L, 8L, 9L, :
?min? not meaningful for factors
Sin embargo me sale el error inmediatamente anterior.
La verdad no sé qué trata de decirme.
A ver si me puedes dar una mano con eso.
Un abrazo.
Pd: envÃo ambos formatos para trabajo.
------------------------------
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.