Learn R Programming

HWxtest (version 1.1.9)

xcountCutoff: Determine immediately whether number of tables is over a limit

Description

Calling scountCutoff gives you a quick answer to whether the number of tables is over a given cutoff. It is useful in deciding whether to analyze a data set with xtest or mtest. This function is used by hwx.test and not normally called directly by the user.

Usage

xcountCutoff(m, cutoff = 1e+07)

Arguments

m

vector containing the numbers of alleles of each type. It can also be a matrix of genotype counts, but not a vector of genotype counts.

cutoff

Is the number of tables above or below this value?

Value

TRUE or FALSE depending on whether the table count is above or below cutoff

Examples

Run this code
# NOT RUN {
#
alleles <- c(15, 14, 11, 12, 2, 2, 1, 3)
if(xcountCutoff(alleles)) cat("There are too many tables")
# }

Run the code above in your browser using DataLab