combine_multilocus: Combine Multiple Locus and Assure Constant Width

View source: R/import_data.R

combine_multilocusR Documentation

Combine Multiple Locus and Assure Constant Width

Description

Combine Multiple Locus and Assure Constant Width

Usage

combine_multilocus(locus)

Arguments

locus

A vector with all the locus in string format.

Value

A long string with all locus combined, padding zeros making ever locus three characters long.

Examples

## Not run: 
multilocus <- c("182", "180", "152", "152")
multilocus_combined <- combine_multilocus(multilocus)

## End(Not run)
## Not run: 
multilocus_combined <- apply(multilocus_matrix, 1, combine_multilocus)

## End(Not run)

CGI-NRM/GenotypeCheck documentation built on May 23, 2024, 3:21 p.m.