dist.hamming: Hamming Distance

Description Usage Arguments Details Value Author(s) See Also

View source: R/haplotype.R

Description

This function implements a general purpose Hamming distance.

Usage

1

Arguments

x

a matrix or a data frame.

Details

This function should work for a wide range of data types. A typical usage would be with an object of class c("haplotype", "character").

For objects of class c("haplotype", "DNAbin"), it is better to use dist.dna(x, "n") to compute the Hamming distances.

Value

an object of class "dist".

Author(s)

Emmanuel Paradis

See Also

haplotype, dist.haplotype.loci


pegas documentation built on May 17, 2021, 9:08 a.m.