Learn R Programming

safestats (version 0.8.7)

checkDoubleArgumentsDesignObject: Helper function to check whether arguments are specified in a function at a higher level and already provided in the design object.

Description

Helper function to check whether arguments are specified in a function at a higher level and already provided in the design object.

Usage

checkDoubleArgumentsDesignObject(designObj, ...)

Value

Returns nothing only used for its side-effects to produces warnings if needed.

Arguments

designObj

an object of class "safeDesign".

...

arguments that need checking.

Examples

Run this code
designObj <- designSafeZ(0.4)

checkDoubleArgumentsDesignObject(designObj, "alpha"=NULL, alternative=NULL)
# Throws a warning
checkDoubleArgumentsDesignObject(designObj, "alpha"=0.4, alternative="d")

Run the code above in your browser using DataLab