ck.w: Check data for a Wescott layout

View source: R/ck_w.R

ck.wR Documentation

Check data for a Wescott layout

Description

This function checks the grid of checks on the Wescott layout and the number of missing values.

Usage

ck.w(trait, geno, ck1, ck2, row, col, ncb, dfr)

Arguments

trait

The trait to analyze.

geno

The genotypes.

ck1

Name of check 1.

ck2

Name of check 2.

row

Label for rows.

col

Label for columns.

ncb

Number of columns between two check columns.

dfr

The name of the data frame.

Value

Four control values (c1, c2, c3, and c4, for the grid of checks, the number of missing values for checks (nmis.ck) and genotypes nmis, the proportion of missing values for checks (pmis.ck) and genotypes (pmis), and the number of rows in the data frame with missing values for factors (nmis.fac).

Author(s)

Raul Eyzaguirre.

Examples

# Create a design
dfr <- cr.w(1:1000, "A", "B", 50, 10)
dfr <- dfr$book
# Create some random data
dfr$y <- rnorm(1125)
# Delete some values
dfr[c(11, 165, 569, 914), 'y'] <- NA
# Check the design
ck.w("y", "geno", "A", "B", "row", "col", 10, dfr)

reyzaguirre/st4gi documentation built on March 29, 2024, 5:45 a.m.