Learn R Programming

strvalidator (version 0.1)

addDye: Adds dye information to a data frame

Description

addDye Adds a 'Dye' column to 'data' based on the information in 'kit'.

Usage

addDye(data, kit)

Arguments

data
Data frame containing at least a column 'Marker'.
kit
String or integer specifying the STR typing kit.

Value

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

Details

Information about which dye each marker is labelled with in the specified STR typing kit 'kit' is added as a new column to a data frame containing at least a column 'Marker'.

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 <- addDye(data=x, kit="ESX17")
print(x)
print(y)

Run the code above in your browser using DataLab