Learn R Programming

strvalidator (version 1.7.0)

addMarker: Add Missing Markers.

Description

Add missing markers to a dataset given a kit.

Usage

addMarker(data, marker, ignore.case = FALSE, debug = FALSE)

Arguments

data
data.frame or vector with sample names.
marker
vector with marker names.
ignore.case
logical. TRUE ignores case in marker names.
debug
logical indicating printing debug information.

Value

data.frame.

Details

Given a dataset or a vector with sample names the function loops through each sample and add any missing markers. Returns a dataframe where each sample have at least one row per marker in the specified marker vector. Use sortMarker to sort the markers according to a specified kit. Required columns are: 'Sample.Name'.