tests/testthat/test_scaling.R

######################
context("scaling")
# dScale
x <- DepecheR:::generateBimodalData(observations = 100)
y_df <- DepecheR:::dScale(x[[1]])

###################### dScaleCoFunction
x <- DepecheR:::generateBimodalData()
result <- DepecheR:::dScaleCoFunction(x[[1]][, 2],
    control = x[[1]][, 2],
    scale = c(0.001, 0.999),
    robustVarScale = TRUE,
    truncate = c(0.001, 0.999),
    center = "mean", multiplicationFactor = 1
)

Try the DepecheR package in your browser

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

DepecheR documentation built on Nov. 8, 2020, 5:44 p.m.