Built with blockbuilder.org
forked from bletcher's block: transition test
is.regular <- function(x) { | |
# returns TRUE if vector x of POSIXct datetimes is continuous and regular | |
# by checking if there are more than one unique difftime between each row | |
x.difftime <- difftime(x[2:length(x)], x[1:(length(x)-1)], units='secs') | |
if (length(levels(factor(x.difftime))) > 1) { | |
return (FALSE) | |
} else { | |
return (TRUE) | |
} | |
} |
Built with blockbuilder.org
forked from bletcher's block: transition test
Built with blockbuilder.org
forked from bletcher's block: transition test
forked from walkerjeffd's block: transition test 2
license: gpl-3.0 | |
height: 200 |
license: gpl-3.0 |
license: gpl-3.0 |
Built with blockbuilder.org
license: mit |
license: mit |
license: mit |