diff --git a/R/calc_het.R b/R/calc_het.R index 414ef72a..3f7abedc 100644 --- a/R/calc_het.R +++ b/R/calc_het.R @@ -64,7 +64,7 @@ calc_het <- het_col <- vector("list", n_chr) geno <- dimnames(probs)[[2]] - if(any(nchar(geno) != 2)) { + if(any(nchar(unlist(geno)) != 2)) { stop("calc_het requires genotypes to have two-letter names") }