Learn R Programming

moveWindSpeed (version 0.2.4)

getIsSamplingRegularFunction: A function to generate functions used to check if a segment is regular

Description

A function to generate functions used to check if a segment is regular

Usage

getIsSamplingRegularFunction(isSamplingRegular)

Value

a function which decides if a sequence of timestamps is regular

Arguments

isSamplingRegular

a function which decides if a sequence of timestamps is regular or the interval which is considered regular

Examples

Run this code
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