search for: int_overlaps

Displaying 4 results from an estimated 4 matches for "int_overlaps".

2014 Jul 17
3
FW: Selección eficiente de individuos
...lubridate) fe.chas <- data.frame( entra=c('2001-01-01','2001-06-01','2003-01-01') ,sale=c('2002-01-01','2002-06-01','2004-01-01') ) ref <- new_interval(ymd('2001-12-01'), ymd('2002-01-01')) mapply( function(x,y,z) {int_overlaps(new_interval(x,y),z)} ,fe.chas$entra, fe.chas$sale, ref ) #--------------------- ​Produce este resultado: > fe.chas <- data.frame( + entra=c('2001-01-01','2001-06-01','2003-01-01') + ,sale=c('2002-01-01','2002-06-01','2004-01-01&...
2012 Mar 06
0
lubridate 1.1.0
...endly. NEW FEATURES * intervals are now more useful and lubridate has more ways to manipulate them. Intervals can be created with %--%; modified with int_shift(), int_flip(), and int_standardize(); manipulated with intersect(), union(), and setdiff(); and used in logical tests with int_aligns(), int_overlaps(), and %within%. lubridate will no longer perform arithmetic between two intervals because the correct results of such operations is no more obvious than the correct result of adding two dates. Instead users are encouraged to use the new set operations or to directly modify intervals with int_start...
2012 Mar 06
0
lubridate 1.1.0
...endly. NEW FEATURES * intervals are now more useful and lubridate has more ways to manipulate them. Intervals can be created with %--%; modified with int_shift(), int_flip(), and int_standardize(); manipulated with intersect(), union(), and setdiff(); and used in logical tests with int_aligns(), int_overlaps(), and %within%. lubridate will no longer perform arithmetic between two intervals because the correct results of such operations is no more obvious than the correct result of adding two dates. Instead users are encouraged to use the new set operations or to directly modify intervals with int_start...
2014 Jul 17
4
Selección eficiente de individuos
Buenas tardes, Tengo un data frame denominado “trabajadores”, que cubre desde el 1 de enero de 1997 hasta el 30 junio de 1999, con 3 columnas: Identificador (ID), la fecha de entrada en la empresa (ENT) y la fecha de salida (SAL). Deseo localizar aquellos trabajadores que, durante dicho periodo, NO han llegado a pasar un 31 de diciembre y un 1 de enero seguidos (cambio de año) como asalariados