powered by
A function to generate functions used to check if a segment is regular
getIsSamplingRegularFunction(isSamplingRegular)
a function which decides if a sequence of timestamps is regular
a function which decides if a sequence of timestamps is regular or the interval which is considered regular
fun<-getIsSamplingRegularFunction(10) fun(Sys.time()+1:5) fun(Sys.time()+c(0,10,20,30)) fun(Sys.time()+c(0,10,20,31))
Run the code above in your browser using DataLab