validateArgumentWeights.MicroarrayData: Validates the argument 'weights'

Description Usage Arguments Value Author(s) See Also

Description

Validates the argument 'weights'.

Usage

1
2
## S3 method for class 'MicroarrayData'
validateArgumentWeights(this, weights, slides=NULL, zeroOneOnly=FALSE, ...)

Arguments

weights

Either a numeric, logical vector, or NULL. If a logical, it is coersed to a zero-one double vector. If a numeric, each element must be in [0,1], otherwise an Exception is thrown. If NULL, then NULL is returned.

zeroOneOnly

If TRUE, only zero-one weights are allows. All non-zero weights are set to one.

Value

Returns a double vector of weights of equal length as the input vector. If NULL was given, then NULL is returned.

If the argument was invalid an Exception is thrown.

Author(s)

Henrik Bengtsson (http://www.braju.com/R/)

See Also

For more information see MicroarrayData.


HenrikBengtsson/aroma documentation built on May 7, 2019, 12:56 a.m.