validateClass {MethylIT}R Documentation

Function to validate S3 classes in MethylIT

Description

S3 generic used internally by MethylIT to ensure correct object classes are being used. validateClass() is called by these functions: estimateCutPoint evaluateDIMPclass FisherTest getPotentialDIMP nonlinearFitDist predictDIMPclass predictLogisticR selectDIMP uniqueGRfilterByCov

Usage

validateClass(LR)

## Default S3 method:
validateClass(LR)

## S3 method for class 'pDMP'
validateClass(LR)

## S3 method for class 'InfDiv'
validateClass(LR)

Arguments

LR

An object from class 'pDMP' or 'InfDiv'

Value

TRUE if object is valid, otherwise warning() and stop() are called

Examples

data(HD, nlms)
PS <- getPotentialDIMP(LR = HD, nlms = nlms, div.col = 9L, alpha = 0.05)
validateClass(HD)
validateClass(PS)


[Package MethylIT version 0.3.1 ]