checkInput: Check input data

Description Usage Arguments Details

View source: R/checkInput.R

Description

Check input data and return detailed errors when it is malformed

Usage

1
checkInput(daf, divergence, xlow, xhigh)

Arguments

daf

data frame containing DAF, Pi and P0 values

divergence

data frame containing divergent and analyzed sites for selected (i) and neutral (0) classes

xlow

lower limit for asymptotic alpha fit

xhigh

higher limit for asymptotic alpha fit

Details

Check input data used in most package's functions (arguments daf, divergence, xlow and xhigh) and return a brief description of the error(s) found. This function is called within each analysis function (standardMKT, FWW, DGRP, asymptoticMKT, iMKT) and if data does not pass checkInput() without errors, the requested analysis is not performed.


sergihervas/iMKT documentation built on May 3, 2019, 1:49 p.m.