Description Usage Arguments Details Value Examples
Determine if a dimension is regular (evenly spaced).
1 | nc.is.regular.dimension(d, tolerance = 1e-06)
|
d |
The data to be tested |
tolerance |
The tolerance for variation in step size, as a fraction of the step size. |
Not all dimensions or data are regular (evenly spaced). This function will, given data and optionally a tolerance level, determine if the dimension is regular or not.
TRUE if the data is regular; FALSE if not.
1 2 3 4 5 6 7 | dat <- c(1, 2, 3, 4, 5, 6, 7)
## TRUE
nc.is.regular.dimension(dat)
dat[7] <- 7.001
## FALSE
nc.is.regular.dimension(dat)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.