inst/unitTests/runitseqRange.R

.setUp <- function () {}
.tearDown <- function () {}

test.one <- function() {
    z <- rnorm(10)
    zGrid <- seqRange(range(z), length.out=11)
    checkEquals(range(z), range(zGrid))
    checkEquals(11, length(zGrid))
    checkEqualsNumeric( rep(diff(range(z))/10,10),  diff(zGrid) )
}

Try the twMisc package in your browser

Any scripts or data that you put into this service are public.

twMisc documentation built on May 2, 2019, 6:11 p.m.