powered by
Calculate Hamming distance of two character vectors
hamming_distance(a, b, nthread = NULL)
a vector of hamming similarities of the strings
the first character vector
Maximum number of threads to use. If NULL (default), Rayon's global thread pool is used, which typically uses all logical CPU cores available.
NULL
hamming_distance( c("ACGTCGATGACGTGATGCGTAGCGTA", "ACGTCGATGTGCTCTCGTCGATCTAC"), c("ACGTCGACGACGTGATGCGCAGCGTA", "ACGTCGATGGGGTCTCGTCGATCTAC") )
Run the code above in your browser using DataLab