addMarker: Add Missing Markers.

View source: R/addMarker.r

addMarkerR Documentation

Add Missing Markers.

Description

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

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.

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

Value

data.frame.


OskarHansson/strvalidator documentation built on July 22, 2023, 12:04 p.m.