Learn R Programming

strvalidator (version 2.3.0)

addMarker: Add Missing Markers.

Description

Add missing markers to a dataset given a set of markers.

Usage

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

Value

data.frame.

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.

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'.