Learn R Programming

strvalidator (version 0.1)

addKitInfo: Adds all kit information

Description

addKitInfo Adds all kit information as new columns to 'data' for each 'Marker' according to the specified 'kit'.

Usage

addKitInfo(data, kit)

Arguments

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

Value

  • data.frame the original data frame containing additional columns.

Details

'data' contains short tandem repeat (STR) marker/locus names in the required column. Based on the provided kit name other information is attached to 'data' in new columns.

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