trimAlleles {pould}R Documentation

Truncate allele names in haplotypes to the specified number of fields.

Description

This function accepts a dataframe of tilde-delimited haplotypes and trims colon-delimited names to the number of fields specified by 'reso'.

Usage

trimAlleles(haplotypes, reso)

Arguments

haplotypes

Data frame of tilde-delimited haplotypes extracted from the famData provided to LDWrap()

reso

An integer that specifies the number of fields to which colon-delimited allele names in famData should be truncated. The default value of 0 indicates no truncation. A value higher than the number of fields in the supplied allele data will result in no truncation.

Value

A data frame of two sets of tilde-delimited haplotypes.

Note

This function is for internal POULD use only.

Examples

#

[Package pould version 1.0.1 Index]