Learn R Programming

strvalidator (version 0.1)

addZvalue: Adds all kit information

Description

addZvalue Applies the Z value to dna results.

Usage

addZvalue(data, ref, byName = TRUE, ignoreCase = TRUE,
    matchSource = "ref")

Arguments

data
Data frame containing at least a column named 'Marker'.
ref
...
byName
if TRUE matching of samples and ref by name, if FALSE by position.
matchSource
if 'ref' sample names from 'ref' is used as source for matching. Allowes for partial matching of sample names (e.g. 'AB' matches '01_ABc'). NB! names in 'ref' must be unique to sample names refering to a single DNA source. If 'data' sample nam
ignoreCase
If TRUE name matching is case insensitive.

Value

  • data.frame the original data frame containing an additional column.

Details

Takes (GM-formatted) data for samples and references (with Z column) as input. Adds a column 'Z' to the data.frame.

Examples

Run this code
# Get marker names for Promega PowerPlex ESX 17.
x <- data.frame(Marker = getKit("ESX17")$locus)
# Get other kit information using string name.
y <- addKitInfo(data=x, kit="ESX17")
print(x)
print(y)

Run the code above in your browser using DataLab